HTML | DOM Input Date stepDown( ) Method Last Updated : 31 Aug, 2022 Comments Improve Suggest changes Like Article Like Report 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 decrease. when we exclude number from inputdateObject.stepDown(number) and leave it as inputdateObject.stepDown() then by default number of days decremented by 1. Below program illustrates the Date stepDown property : Example: Decrementing the value of a date field by 2 days. html <!DOCTYPE html> <html> <head> <title> HTML | DOM Input Date stepDown( ) Method </title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Input Date stepDown Property </h2> <br> <input type="date" id="Test_Date"> <p>To decrease the step, double click the "Decrease Step" button. </p> <button ondblclick="My_Date()"> Decrease Step </button> <p id="test"> </p> <script> function My_Date() { // Decrease 2 days. document.getElementById( "Test_Date").stepDown(2); } </script> </body> </html> Output: After clicking the button: Supported Browsers: Apple Safari 14.1Edge 12Firefox 57Google Chrome 20Opera 11 Comment More infoAdvertise with us Next Article HTML | DOM Input Date stepDown( ) Method S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads 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 DatetimeLocal stepDown() Method 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.stepD 2 min read HTML | DOM Input Week stepDown() Method The Input Week stepDown() method in HTML DOM is used to decrease the value of the week field by the given number. This method will only decrease the value of weeks not years. Syntax: weekObject.stepDown( number ) Parameters: It accepts single parameter number which is mandatory. It specifies the num 1 min read HTML DOM Input Time stepDown() Method The Input Time stepDown() method in HTML DOM is used to decrease the value of the time field by the given number. It will only affect the number of minutes (not hours, seconds, or milliseconds). Syntax: timeObject.stepDown( number )Parameters: It accepts a single parameter and it is required. number 1 min read HTML | DOM Input Month stepDown() Method The DOM Input Month stepDown() method in HTML DOM is used to decrease the value of the month field by the given number. This method will only decrease the value of months not years. Syntax: monthObject.stepDown(number) Parameters: It accepts a single and required parameter: number It specifies the n 1 min read Like