Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Free
  5. date

Field date ​

Version: Free.

Why this type ​

A calendar, not typed text. It is not a time and not a date with a time: those are time and datetime. The format stays stable, so you can sort the date in Fenom.

When to use ​

  • Event date, promo deadline, publish day
  • "Valid until" on a promo section
  • Calendar-based content filter

Tips ​

Hours need time or datetime. Do not mix timezone logic in the chunk without a clear contract.

Similar types ​

Schema ​

json
{
  "name": "starts_at",
  "type": "date",
  "label": "Date",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value ​

YYYY-MM-DD string.

Section data ​

Key starts_at in the section data (YYYY-MM-DD):

json
{
  "starts_at": "2026-08-24"
}

Chunk example ​

modx
<time datetime="[[+starts_at]]">[[+starts_at]]</time>
fenom
<time datetime="{$starts_at|escape}">{$starts_at|escape}</time>

Common properties ​

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25–100Field width as % of the row (flex)yes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

See fields overview.

See also ​