Input DatetimeLocal stepUp() Method

Definition and Usage

stepDown() The method increases the value of the local date-time field by the specified amount.

This method only affects minutes (not year, month, day, hour, second, or millisecond).

Tip:To decrease the value, please use stepDown() method.

Instance

Example 1

Increase the value of the datetime field by 10 minutes:

document.getElementById("myLocalDate").stepUp(10);

Try it personally

Example 2

Increase the minutes by 1 (default):

document.getElementById("myLocalDate").stepUp();

Try it personally

Syntax

datetimelocalObject.stepDown(number)

Parameter Value

Parameter Description
number

Required. Specifies the number of minutes to be added to the date and time field.

If omitted, the minutes are increased by "1".

Technical Details

Return Value:

No Return Value.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported 12.0 Not Supported Supported Supported