Answers for "date and time in html input"

6

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

time input html

<input type="datetime-local" name="" id="">
//Incase you need to add both date and time 

<input type="time" name="" id="">
//For just time
Posted by: Guest on February-22-2022
1

input field html for date

<input type="date" >
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language