HTML DOM Input Date select() Method Last Updated : 15 Sep, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The Input Date select() Method in HTML DOM is used to select the contents of the Date text field. It is the predefined method of the Input date object. Syntax: dateObject.select() Parameter: This method does not contain any parameters. Return Values: It does not return any value. Example: Below example illustrates the use of the Input Date select() Method in HTML DOM. HTML <!DOCTYPE html> <html> <head> <title>HTML DOM Input Date select() Method</title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Input Date select() Method</h2> <br> <input type="date" id="test_Date" autofocus> <p> To select the content of the Date Field, double click the "Check me!" button. </p> <button ondblclick="My_selectDate()"> Check me! </button> <script> function My_selectDate() { var d = document.getElementById( "test_Date").select(); } </script> </body> </html> Output: Supported Browsers: Google Chrome 20Edge 12Opera 11Firefox 57Safari 14.1 Comment More infoAdvertise with us Next Article HTML DOM Input Date select() Method M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Methods Similar Reads 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 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 Time select() Method The input Time select() method in HTML DOM is used in selecting the content of the time text field. Syntax: timeObject.select() Parameters: It does not accept any parameter. Return Value: It does not return any value. Example: This example uses the input Time select() method to select the content i 1 min read HTML DOM Input Week select() Method The input week select() method in HTML DOM is used in selecting the content of the week field. Syntax: weekbject.select() Parameters: It does not accept any parameter. Example: This example uses the input week select() method to select the week field. HTML <!DOCTYPE html> <html> <head 1 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 Like