DocEngine

Field types · Date

Date date

Calendar field provided by the @docengine/field-date plugin (not a core built-in).

At a glance

  • Schema type: date
  • Value: ISO YYYY-MM-DD or empty
  • Use when: Visit dates, due dates, document dates.

Type properties

Options that appear only for Date fields. Shared options (Label, Field Name, Required, …) are on Field types → Common properties.

Date format
How the stored ISO date is shown in the document (e.g. dd/mm/yyyy, iso, or custom). Storage remains YYYY-MM-DD.
Custom pattern
When Date format is custom. Tokens: YYYY YY MMMM MMM MM M DD D (e.g. DD.MM.YYYY).
Default
Current date (when filling) fills today’s date in fill mode, or Fixed date uses a constant ISO date.
Fixed date
Shown when Default is Fixed date — the ISO date applied as the default.

Details

  • Hosts must registerDateField({ registerField }) and supply pickers.openDatePicker.
  • Stored value is always ISO YYYY-MM-DD; dateFormat / customDateFormat control display.
  • Mapping can format at apply time with path suffixes like $payload.CreatedDate#dd/mm/yyyy.
  • Default mode can be today or a fixed ISO date on the schema.

Related

Other field types

← All field types