HTML | DOM Input DatetimeLocal stepDown() Method Last Updated : 17 Jan, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The Input DatetimeLocal stepDown() method in HTML DOM is used to decrements the value of the Local datetime field by a specified number. It can only be used on the Minutes. Years, months, days, hours, seconds or milliseconds are not affected by the stepDown() method. Syntax datetimelocalObject.stepDown(number) Parameters: It contains single parameter number which is used to specify the amount of minutes the local datetime field should decrease. when we exclude number from datetimelocalObject.stepDown(number) and leave it as datetimelocalObject.stepDown() then by default number of minutes decremented by 1. Below program illustrates the DatetimeLocal stepDown method in HTML DOM: Example: This example use stepDown() method to decrease the value of minutes by 2. html <!DOCTYPE html> <html> <head> <title> Input DatetimeLocal stepDown() Method </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2 style="font-family: Impact;"> Input DatetimeLocal stepDown() Method </h2> <input type="datetime-local" id="test_DatetimeLocal"> <p> To decrease the value of the datetimeLocal field by 2minutes, double click the "Update" button. </p> <button ondblclick="My_DatetimeLocal()"> Update </button> <!-- Script to use stepDown() method --> <script> function My_DatetimeLocal() { document.getElementById("test_DatetimeLocal").stepDown(2); } </script> </body> </html> Output: After clicking the button Supported Browsers: The browser supported by Input DatetimeLocal stepDown() method are listed below: Apple Safari Internet Explorer 12.0 Google Chrome Opera Comment More infoAdvertise with us Next Article HTML | DOM Input DatetimeLocal stepDown() Method S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input DatetimeLocal stepUp() Method The Input DatetimeLocal stepUp() method in HTML DOM is used to increment the value of the Local datetime field by a specified number. The Input DatetimeLocal stepUp() method can only be used on the value Minutes. Years, months, days, hours, seconds or milliseconds are not affected by the stepUp() me 2 min read HTML | DOM Input Date stepDown( ) Method The Input Date stepDown() method is used for decrementing the value of the date field by a specified number. It can only be used on the days and not on months and years. Syntax: inputdateObject.stepDown(number) Parameter Used: number: It is used to specify the number of days the date field should de 1 min read HTML | DOM Input DatetimeLocal step Property The Input DatetimeLocal Step property in HTML DOM is used to set or return the value of the step attribute of a local datetime field. The Input Step attribute can be used for specifying the legal number intervals for seconds or milliseconds in a local datetime field. The step property cannot be used 2 min read HTML | DOM Input Date stepUp() Method The Input Date stepUp() method in HTML DOM is used to increment the value of date field by a specified number. The Input Date stepUp() method can only be used on the days and not on months and years. Syntax: inputdateObject.stepUp( number ) Parameters: This method accepts single parameter number whi 1 min read HTML DOM Input Datetime select() Method The input Datetime select() method in HTML DOM is used in selecting the content of the Datetime Text field. Syntax: Datetimebject.select()Parameters: It does not accept any parameter. Example: This example uses the input Datetime select() method to select the Datetime field. HTML <!DOCTYPE html 1 min read Like