Date/time picker

About the field

The date/time picker is a field that provides a calendar-based interface for editors to choose a date and time, as opposed to a simple text input.

There are various date and time formats, such as European (e.g., dd/mm/yyyy) or US (e.g., mm/dd/yyyy), as well as options for displaying time in either 12-hour or 24-hour formats.

By default, Advanced Views displays the date in the format you've set up in the field settings, either as the 'Return' or 'Save' format.

Date manipulations

With the Twig date filters, you can compare dates, change the display format, and make value modifications such as adding or removing periods. For more information, please refer to the Twig templates manual.

Tip: We recommend using the '.timestamp' property of the date field when applying any date filters. This will save you from dealing with date parsing issues. For example, both US (e.g., mm/dd/yyyy) and European (e.g., dd/mm/yyyy) formats use the same delimiter, but the European format will be ignored in favor of the US format."

Multilingual dates

By default, PHP displays date-related symbols (such as 'a.m.') in English. Advanced Views utilizes the 'date_i18n' WordPress function, which supports multiple languages, so you don't need to concern yourself with translating date-related symbols.

Last updated