HTML | DOM Input DatetimeLocal stepDown() Method Last Updated : 17 Jan, 2022 Comments Improve Suggest changes 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 HTML | DOM Input DatetimeLocal readOnly Property The Input DatetimeLocal readOnly property is used to set or return whether a datetimeLocal field should be read-only, or not. Once a field has been declared read-only, it cannot be further modified. However, the read-only field can be tabbed, highlighted and can be used for copying text. The HTML re 2 min read HTML | DOM Input DatetimeLocal type Property The Input DatetimeLocal type property is used for returning the type of form element the datetimeLocal field is. The Input DatetimeLocal type property returns a string that represents the type of form element the datetimeLocal field is. Browsers such as Safari and Opera return "datetime-local" as a 2 min read HTML | DOM Input DatetimeLocal name Property The Input DatetimeLocal name property is used to set or return the value of the name attribute of a datetimeLocal field. The form data which has been submitted to the server can be identified by the name attribute. The name attribute is also used for referencing form data on the client side using Ja 2 min read HTML | DOM Input DatetimeLocal Object The Input DatetimeLocal object is used for representing an HTML <input> element of the type="datetime-local". The Input DatetimeLocal Object is a new object in HTML5. Syntax: For creating a <input> element with the type ="datetime-local":gfg = document.createElement("input") gfg.setAttri 3 min read HTML | DOM Input DatetimeLocal min Property The Input DatetimeLocal min property is used for setting or return the value of the min attribute of the datetimeLocal field. It is used to specify the minimum value of date and time for a datetimeLocal field. It returns a string that represents the minimum date and time allowed. Syntax: It returns 2 min read Like