date attribute

<input type=date>

Explanation

Date Attribute permits the user to select only the "date" from the input field.

Example Code:

Result :

Select date:
  • Here the user can select or enter date in the input field.
  • Output shown will be the entered text, if the attribute is not applicable in a browser.
  • Opera displays the date in "Calendar Format".

Limitations:

It will function only in Opera, Chrome and Safari browsers.

Ask Questions

Ask Question