Prop Input Time Value
# HTML DOM Input Time value Property
[ Input Time Object](#)
## Example
Set the time for the time field:
document.getElementById("myTime").value = "22:53:05";
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The `value` property sets or returns the value of the `value` attribute of a time field.
The `value` property describes the time value of the time field.
* * *
## Browser Support

The `value` property is supported in all major browsers.
**Note:** Internet Explorer and Firefox do not support the HTML `` element with `type="time"`.
* * *
## Syntax
Get the `value` property:
_timeObject_.value
Set the `value` property:
_timeObject_.value=_hh:mm:ss.ms_
## Property Values
| Value | Description |
| --- | --- |
| _hh:mm:ss.ms_ | Describes the time of the time field. Parsing: * hh - hours (e.g., 22 for 10 PM) * mm - minutes (e.g., 30) * ss - seconds (e.g., 03) * ms - milliseconds (e.g., 20) Example: "09:55:32.55" or "22:15:35". |
## Technical Details
| Return Value: | A string, representing the time of the time field (without timezone information). |
| --- |
* * *
## More Examples
## Example
Get the time of the time field:
```javascript
var x = document.getElementById("myTime").value;
The value of _x_ will be:
16:32:55
[Try it Yourself Β»](#)
* * *
## Related Pages
HTML Reference: [HTML `` value attribute](#)
* * Input Time Object](#)
YouTip