HTML DOM Input DatetimeLocal list Property Last Updated : 29 Jan, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report The input DateTimeLocal list property in HTML DOM returns a reference to the list element that contains an input datetimelocal field. Syntax: DatetimelocalObject.list.idReturn Value: It returns a string value that represents the value of the id attribute of the datalist element. Example: This HTML code returns the input DateTimeLocal list Property. HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input DatetimeLocal list Property </title> </head> <body style="text-align: center;"> <h1>GeeksforGeeks</h1> <h2>HTML DOM Input DatetimeLocal list Property</h2> <br> Date Of Birth: <input type="datetime-local" list="DateTimeLocal_list" id="Test_DatetimeLocal"> <datalist id="DateTimeLocal_list"> <option value="2019-02-04T12:32:20.51"> <option value="2019-02-04T12:32:20.51"> <option value="2019-02-04T12:32:20.51"> <option value="2019-02-04T12:32:20.51"> </datalist><br><br> <button onclick="My_DatetimeLocal()"> Click Here! </button> <p id="result"></p> <script> function My_DatetimeLocal() { let x = document.getElementById( "Test_DatetimeLocal").list.id; document.getElementById("result").innerHTML = x; } </script> </body> </html> Output: Supported Browsers: Google Chrome 20Edge 12Firefox 93Opera 11Safari 14.1 Comment More infoAdvertise with us Next Article HTML DOM Input DatetimeLocal list Property M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Property Similar Reads HTML DOM Input Datetime list Property The input DateTime list property in HTML DOM is used to return a reference to the list element that contains an input DateTime field.Syntax:datetimeObject.list.idReturn value: It returns a string value that represents the value of the id attribute of the datalist element.Example:Â Below HTML code is 1 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 HTML | DOM Input DatetimeLocal max Property The Input DatetimeLocal max property is used to set or return the value of the max attribute of a local DateTime field. The Input DatetimeLocal max attribute is used for specifying the maximum value of date and time for a local DateTime field. The Input DatetimeLocal max attribute returns a string t 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 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 Like