Date

Select a date and optional time. Data is stored as a timestamp and can be formatted with any of the date modifiers or used in Tag conditions to filter results.


Preview

Date Fieldtype

Settings

This fieldtype supports the following settings in addition to the defaults.

allow_time

boolean true

Enable/disable the timepicker

require_time

boolean false

Makes the time fields visible and non-dismissible.

allow_blank

boolean false

Allow the field to be left blank on save

format

string Y-m-d (H:i)

How the date should be saved. Any PHP date formatting variables may be used.

input_format

string YYYY/M/DD

How the date should be displayed in the field. Any Moment.js date formatting variables may be used.

earliest_date

string

The earliest date selectable. Accepts Moment.js dates, eg. January 1, 1900

Last modified on July 23, 2018