Input DatetimeLocal stepDown() Method

Definition and Usage

The stepDown() method reduces the value of the local datetime field by the specified number.

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

Tip:To increase the value, please use stepUp() method.

Instance

Example 1

Decrease the value of the datetime field by 10 minutes:

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

Try it yourself

Example 2

Subtract 1 minute (default):

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

Try it yourself

Syntax

datetimelocalObject.stepDown(number)

Parameter Value

Parameter Description
number

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

If omitted, the minutes are reduced 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