HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Input Date Object : Get the minimum date allowed for a date field
The min property sets or returns the value of the min attribute of a date field.
The min attribute specifies the minimum value (date) for a date field.
Property | |||||
---|---|---|---|---|---|
min | Yes | 12.0 | Yes | Yes | Yes |
Return the min property:
Set the min property:
Value | Description |
---|---|
YYYY-MM-DD |
Specifies the minimum date allowed for the date field. Explanation of components:
|
Return Value: | A String, representing the minimum date allowed |
---|
Change the minimum date:
document.getElementById("myDate").min = "1999-01-01";
HTML reference: HTML <input> min attribute
❮ Input Date Object