Date Time Picker
A date time picker. Good for date values such as page created, page published etc.
Settings
Basic
Name
: The human-friendly name of this field.Data Key
: The field name in published data. It must be in UpperCamelCase.Description
: The description of this field, should be a human-friendly text shown for content editor.Hidden
: Hide this field from the template. Used to create document with hidden default values. It is recommended that put this field to bottom.
Options
Time zone
: Specify which time zone is used in this field.
Validation
Required
: The field is required.
Display
Format
: The display text for this field. Refer to this for format specifier definition.
Default
Use 'now' as default
: Apply the current date time as the value for new documents.Default
: The default value of this field when create a new document based on this template.
Publish
Data Key
is set as postTime
and select 2022-01-01 00:00:00
in Eastern Time (US & Canada).
JSON data
The value of this field will be published as a string
with ISO format in UTC.
{
"postTime": "2022-01-01T05:00:00Z"
}
GraphQL API
The value of this field will be published as a string
with ISO format in UTC.
{
"postTime": "2022-01-01T05:00:00Z"
}