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

  • format one of 'datetime' (yyyymmddHHMMSS format) or 'date' (yyyymmdd format). Default is 'datetime'
  • milliseconds (optional) if true append milliseconds in decimals. Default is false
  • timeZone (optional) one of 'local' or 'utc'. If 'utc', the date will be saved relative to UTC with +/-zz modifier. Default is 'local'

Example

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