Filter (Advanced Search)
Video

Video is not available... Embedded is previous playlist.

Details

The <input type="date"> is used for input fields that should contain a date.

Depending on browser support, a date picker can show up in the input field.


<!DOCTYPE html>
<html>
<body>

<h2>Date Field</h2>

<p>The <strong>input type="date"</strong> is used for input fields that should contain a date.</p>

<form action="/php/inputDate.php" method="post">
  <label for="birthday">Birthday:</label>
  <input type="date" id="birthday" name="birthday">
  <input type="submit" value="Submit">
</form>

<p><strong>Note:</strong> type="date" is not supported in Internet Explorer 11 or prior Safari 14.1.</p>

</body>
</html>



Ad
Added to Favorite
Removed from Favorite