Skip to content

[Back to Parameters]

Datetime

A widget that allows a user to select a date. Value is saved as a string representing date in yyyymmdd format. If no value is set current time is implied

Specification

key type required default value description
format enum: 'datetime' (yyyymmddHHMMSS), 'date' (yyyymmdd) yes 'datetime' Specify date format.
milliseconds boolean no false If true append milliseconds in decimals.
timeZone enum: 'local', 'utc' no 'local' If 'utc', the date will be saved relative to UTC with +/-zz modifier.

Example

{
  "name": "somedate",
  "type": "date",
  "valueType": "string",
  "prompt": "Start date",
  "defaultValue": "20000101",
  "format": "date",
  "milliseconds": false,
  "timeZone": "local"
}