Date or Time Field

Allow for the selection of date, times, or both.

Options#

  • Date Time type :

    • Date & time

    • Date only

    • Time only

  • Date Format – The format the date should be displayed in.

  • Default to current date – Should the date be set to now when the field is used for the first time.

  • Time Format – The format the time should be displayed in.

  • Default to current time – Should the time be set to now when the field is used for the first time.

Use#

If the field has been set to required then the entry will will not be update-able until an appropriate date, time, or date time value has been set.

Template Use#

Access your date or time fields via the handle you set for the field.

Date or Time Properties

  • datetime - If the field is set to date & time, this will contain the full date and time.

  • date - If the field is not a time only, this will contain the date portion of the value.

  • time - If the field is not a date only, this will contain the time portion of the value.

Examples

<p>The event will be help at {{ entry.yourFieldHandle.datetime }}</p>

<p>Event on <br> {{ entry.yourFieldHandle.date }} <br> {{ entry.yourFieldHandle.time }}</p>

If you call the field without any properties it will return the appropriate value:

<p>Be there by {{ entry.yourFieldHandle }}</p>