Prop Datetime Local Form
# Input DatetimeLocal form Property
[ Input DatetimeLocal Object](#)
## Example
Return the id of the form that contains the element:
var x = document.getElementById("myLocalDate").form.id;
The _x_ output will be:
myForm
[Try it yourself Β»](#)
* * *
## Definition and Usage
The form property returns a reference to the form that contains the local time field.
On success, this property returns a form object.
**Note:** This property is read-only.
* * *
## Browser Support

The form property is supported in all major browsers.
**Note:** The element is not supported in Internet Explorer or Firefox.
* * *
## Syntax
_datetimelocalObject_.form
## Technical Details
| Return Value: | A reference to the form element containing the local time field. Returns null if the time control is not in a form. |
| --- |
* * Input DatetimeLocal Object](#)
YouTip