Prop Datetime Local Type
# HTML DOM Input DatetimeLocal type Property
[ Input DatetimeLocal Object](#)
## Example
Return the form element type of the local time field:
```javascript
var x = document.getElementById("myLocalDate").type;
The output of _x_ is:
datetime-local
[Try it yourself Β»](#)
* * *
## Definition and Usage
The `type` property returns the form type of the local time field.
**Note:** In the example above, Internet Explorer and Firefox return "text" instead of "datetime-local".
* * *
## Browser Support

The `type` property is supported in all major browsers.
**Note:** Internet Explorer or Firefox browsers do not support the `` element.
* * *
## Syntax
datetimelocalObject.type
## Technical Details
| Return Value: | A string representing the form element type of the local time field |
| --- |
* * Input DatetimeLocal Object](#)
YouTip