YouTip LogoYouTip

Prop Datetime Local Type

# HTML DOM Input DatetimeLocal type Property [![Image 8: Input DatetimeLocal Object Reference](#) 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 ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) 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](#)
← Prop Datetime Local ValueProp Datetime Local Required β†’