Skip to main content
Browse Documentation

Date and time field

Created by Contensis product team, last modified by r.saunders on 24 Aug 2020

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

Type Summary
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 is 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

Date field editor
Date time field editor
Date range field editor
Date time range field editor

Settings

Setting name Summary
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 name Summary
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 determines whether an author can select a date in the past, e.g. a date less than today. This is enabled by default.

Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.