Overview

The time formatter allows you to format a field as time.

Properties

PropertyDescription
nameSet this to “time” to use this formatter.
formatThe visual format of the date. Check out strftime for valid options.

Examples

TimePickerInput

At the top level of the TimePickerInput properties, you can use the following:

"formatter": {
  "name": "time",
  "format": "HH:MM:SS"
}

The result will look like this:

DataTable

Within a DataTable, you can format a column as time by using the following:

{
  "formatter": {
    "name": "time",
    "format": "HH:MM:SS"
  },
  "required": true,
  "name": "ERTIM",
  "label": "Creation Time"
}

The result will look like this: