Reference Fields
Date Time
The Date Time field allows users to input a date including time via a date picker. The selected date is stored as a string value in the database.

Strife Studio screenshot of a Date Time field
Settings
The Date field does not feature any distinctive settings beyond the standard ones.
You can find a comprehensive list of all basic settings in the 'Overview' section.
Define with JSON
When defining templates using JSON, this field is represented using:
- Component Name:
str-input - Type:
datetime-local - Reference ID:
str-input|datetime-local
The settings above map into the editor.attributes object inside the JSON definition.
{
...
"editor": {
"name": "str-input",
"type": "datetime-local",
"propertyName": "...",
...
},
...
}Live preview
str-time is the preferred Strife Web Component for a Date Time field, although any of the text or container components can also be used.
For more information on live preview and Strife Web Components, please refer to the Live preview documentation.