Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Pro
  5. daterange

Field daterange ​

Version: Pro (advanced-fields).

Two ends: start and end, date strings. If both are set and start is after end, publish fails. One empty end does not fail the check.

Schema ​

json
{
  "name": "period",
  "type": "daterange",
  "label": "Period"
}

Section data ​

json
{
  "period": { "start": "2026-09-01", "end": "2026-09-30" }
}

Chunk example ​

modx
<time>[[+period.start]]</time> - <time>[[+period.end]]</time>
fenom
<time>{$period.start|escape}</time> - <time>{$period.end|escape}</time>

Similar types ​