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 : Increment the value of a date field by 5 days
The stepUp() method increments the value of the date field by a specified number.
This method will only have an affect on DAYS (not month and year).
Method | |||||
---|---|---|---|---|---|
stepUp() | Yes | 12.0 | 17.0 | Yes | Yes |
Parameter | Description |
---|---|
number | Required. Specifies the amount of days the date field should increase. If omitted, the days are incremented by "1" |
Return Value: | No return value |
---|
Increment the days by 1 (default):
document.getElementById("myDate").stepUp();
❮ Input Date Object