Input Date stepUp() Method
Example
Increment the value of a date field by 5 days:
 document.getElementById("myDate").stepUp(5);
Try it Yourself »
Definition and Usage
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).
Tip: To decrement the value, use the stepDown() method.
Browser Support
| Method | |||||
|---|---|---|---|---|---|
| stepUp() | Yes | 12.0 | 17.0 | Yes | Yes | 
Syntax
 inputdateObject.stepUp(number)
Parameter Values
| Parameter | Description | 
|---|---|
| number | Required. Specifies the amount of days the date field should  increase. If omitted, the days are incremented by "1"  | 
  
Technical Details
| Return Value: | No return value | 
|---|
More Examples
Example
Increment the days by 1 (default):
 document.getElementById("myDate").stepUp();
Try it Yourself »
❮ Input Date Object

