Skip to main content
Logo

Date and time

The date and time field editors have four distinct flavours, providing the flexibility to capture the data you require.

TypeSummary
Date A single date picker
Date and time A date and time picker
Date range Two date pickers to provide a range
Date and time range Two date and time pickers to provide a range

The date range editors become available when the format of a Date / Time field are set to range.

Note: Contensis does not support time without a date as we store date and times as Coordinated Universal Time (UTC). While there may be some use cases for time on its own we recommend you use a text field with a regular expression for validation.


Appearance

field-editor-date

field-editor-date-time

field-editor-date-range

field-editor-date-time-range

Settings

Setting nameSummary
Name A text label to identify the field in an entry.
Field ID A sanitised name to be used by the API.
Read only Prevents authors from editing the field in the entry editor.
Repeatable Allows an author to create a collection of content of the same type.

Supported validation

This field editor supports the following validation methods.

Properties

Common properties

Property nameSummary
Placeholder text The placeholder property provides a short hint describing the expected value of a field.
Content guidelines Provides guidance to an author for the expected content the field should contain.

Past dates

This property sets if you want an author to be able to select a dates in the past e.g. a date less than today. This is enabled by default.