Answers for "date and time input in html"

8

input datetime

<input type="datetime-local">
Posted by: Guest on August-10-2020
1

input type time in html

<form>
  <label for="appt">Select a time:</label>
  
  <input type="time" id="appt" name="appt">

 </form>
Posted by: Guest on July-13-2021
0

html date input

<label for="start">Start date:</label>

<input type="date" id="start" name="trip-start"
       value="2018-07-22"
       min="2018-01-01" max="2018-12-31">
Posted by: Guest on May-08-2021
0

input type="date"

<input id="datePicker" type="date" />
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language