Skip to content
Strife Docs

Reference Fields

Date

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

Strife Studio screenshot of a Date field

Settings

The Date field does not feature any distinctive settings beyond the standard ones.

Note:

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: date
  • Reference ID: str-input|date

The settings above map into the editor.attributes object inside the JSON definition.

JSON
{
  ...
  "editor": {
    "name": "str-input",
    "type": "date",
    "propertyName": "...",
    ...    
  },
  ...
}

Live preview

str-time is the preferred Strife Web Component for a Date field, although any of the text or container components can also be used.

Note:

For more information on live preview and Strife Web Components, please refer to the Live preview documentation.