HTML DOM Input DatetimeLocal form Property Last Updated : 29 Jan, 2024 Comments Improve Suggest changes Like Article Like Report The Input DatetimeLocal form property in HTML DOM returns the reference to the form containing the local datetime field. It returns a form object on success, else if the date control is not in the form, it returns NULL. It is a read-only property. Syntax: datetimelocalObject.formReturn Values: It returns a string value that specifies the reference of the form containing the Input Datetimelocal field. Example: This example returns the id of the form containing the <input type="datetime-local"> element. html <!DOCTYPE html> <html> <head> <title> HTML DOM Input DatetimeLocal form Property </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2> HTML DOM Input DatetimeLocal form Property </h2><br> <form id="test_form"> <label>Test Date Control</label> <input type="datetime-local" id="Test_DatetimeLocal"> </form> <p>Click on Button to Return the form id</p> <button onClick="myGeeks()"> Return Form Object </button> <p id="result"></p> <!-- Script to return the form id --> <script> function myGeeks() { let form_id = document.getElementById( "Test_DatetimeLocal").form.id; document.getElementById("result") .innerHTML = form_id; } </script> </body> </html> Output: Note: The <input type="datetime-local"> element does not show any datetime field/calendar in Firefox. Supported Browsers: Google Chrome 20Edge 12Firefox 93Opera 11Safari 14.1 Comment More infoAdvertise with us Next Article HTML DOM Input DatetimeLocal form Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input Datetime form Property The Input Datetime form property is used for returning a reference to the form containing the Datetime field. It is a read-only property that returns a form object on success, else if the date control is not in the form, it returns NULL. Syntax: datetimeObject.form Return Values: It returns a string 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 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 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 Like