# Time cell type
The time cell type formats, renders, and validates the contents of the cell as a time.
To use the time cell type, set the
type: 'time' option in the
columns array or the
The time cell uses Moment.js (opens new window) as the time formatter, therefore you must add the following required dependency:
All data entered into the time-typed cells is eventually validated against the default time format -
h:mm:ss a, which translates to, for example,
9:30:00 am unless another format is provided as the
If you enable the
correctFormat config item, the values will be automatically formatted to match the desired time format.
By default, the values entered into the time-type column are not validated, so if you want them to display in the proper format, remember to call
hot.validateCells() after the table initialization.