Answers for "how to take date time input in html"

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

real time date and time html

<script>
var dt = new Date();
document.getElementById('date-time').innerHTML=dt;
</script>
Posted by: Guest on November-05-2021

Browse Popular Code Answers by Language