HTML | DOM Input Date name Property Last Updated : 31 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Date name property is used for setting or returning the value of the name attribute of a date 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 JavaScript.Syntax: For returning the name property: inputdateObject.nameFor setting the name property: inputdateObject.name = "name" Property Value name: It is used to specify the name of the date field. Return Value: It returns a string value that specifies the name of the Input Date field. Below program illustrates the Date name property :Getting the name of a date field. html <!DOCTYPE html> <html> <head> <title>Input Date name Property in HTML</title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Input Date name Property</h2> <br> Date of Birth: <input type="date" id="Test_Date" name="DOB"> <p>To display the value of the name attribute of the date field, double-click the "Return Name" button.</p> <button ondblclick="My_Date()">Return Name</button> <p id="test"></p> <script> function My_Date() { var n = document.getElementById("Test_Date").name; document.getElementById("test").innerHTML = n; } </script> </body> </html> Output: After clicking the button Supported Web Browsers Apple Safari 14.1Edge 12Firefox 57Google Chrome 20Opera 11 Comment More infoAdvertise with us Next Article HTML | DOM Input Date name Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Input Datetime name Property The Input Datetime name property is used for setting or returning the value of the name attribute of a datetime 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 Java 2 min read HTML | DOM Input Date min Property The Input Date min property is used for setting or returning the value of the min attribute of a date field. The attribute returns a string that represents the minimum date allowed. Syntax: For returning the min property:inputdateObject.minFor setting the min property:inputdateObject.min = YYYY-MM-D 2 min read HTML | DOM Input Date max Property The Input Date max property is used for setting or returning the value of the max attribute of a date field. The max attribute returns a string that represents the maximum date allowed.Syntax: For returning the max property: inputdateObject.maxFor setting the max property: inputdateObject.max = YYYY 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 Date list Property The input Date list property in HTML DOM is used to return a reference to the list element that contains an input date field. Syntax: dateObject.list.id Return value: It returns a string value that represents the value of the id attribute of the datalist element. Example: Below HTML code used to ret 1 min read HTML | DOM Input Datetime min Property The Input Datetime min property is used for setting or returning the value of the min attribute of a datetime field. The Input Datetime min attribute returns a string that represents the minimum date and time allowed. Syntax: For returning the min property:datetimeObject.minFor setting the min prope 2 min read HTML | DOM Input Datetime max Property The Input Datetime max property is used for setting or returning the value of the max attribute of a datetime field. The Input Datetime max attribute returns a string that represents the maximum date and time allowed.Syntax: For returning the max property: datetimeObject.maxFor setting the max prope 2 min read HTML | DOM Input Date form Property The Input Date form property is used for returning a reference to the form containing the Date 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: inputdateObject.form Return Values: It returns a string value w 1 min read HTML | DOM Input Date type Property The Input Date type property is used for returning the type of form element the date field is. The Input Date type property returns a string that represents the type of form element the date field is. Syntax: inputdateObject.type Return Values: It returns a string value that represents the type of f 1 min read HTML | DOM Input Time name Property The DOM Input Time name Property in HTML DOM is used to set or return the value of name attribute of a Time field. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It returns th 2 min read Like