Use the Date/Time field to specify a date and time for Collection items.
The date/time field is a Collection field that lets you and your Collaborators specify a date and time for a Collection Item. The values specified for the date and time field can be displayed in Collection lists or on Collection pages. You can also use the date and time field to filter and sort a Collection list or to set conditional visibility on elements in Collection lists and pages.
In this lesson, we talk about:
A date/time field can be added to a new or existing Collection. In Collection settings, click on New Field and then choose the Date/Time field.
You can choose to include a time picker. And as with any field, you can specify if the field is required or not.
You can set your date and time using the date and time pickers or type in a date (MM/DD/YYYY) or a date and time value (MM/DD/YYYY HH:MM AM).
As a designer, you are given multiple methods of displaying dynamic date and time values in your designs. To incorporate these values into your Collection lists and pages, you need to:
You can connect date and time values to any text element in a Collection list or a Collection page. To create and connect a date and time element:
You can also access the inner Text Settings by selecting the text element and either clicking on the settings icon next to the element label on the canvas or by going to the Settings panel (D).
You can remove the connection by unchecking the “Get text from” under Inner Text Settings.
Once you connect your date and time field to an element, you get a number of date, time, and date and time formatting options in the Format dropdown.
You can pull from the Date/Time field multiple times within your designs. This allows you to create unique layouts and designs to display divided portions of a date (days, months, and years) and time (hours). You can achieve this using multiple text elements bound to different date/time portions. For instance, you can connect one of them to the day, and one of them to the month, and then you can connect another one to the year.
If you want to create a Collection list of upcoming events for example, you can create a filter using the date and time field to show events in the future but hide past events. To do that:
The filter rules you can use with the date and time field values are:
With "Is after/before or equal to", you may:
To create a range of dates to filter, set a start and end date for your range. For example, if you want to filter from 2 weeks into the past to t2wo weeks into the future:
This pair of date filters will create a range where only the items with dates that fall between the two filters are displayed in your collection list.
You can also sort a Collection list by date and time:
With the date filter, you are hiding Collection items that don’t meet a specific date range. With conditional visibility, you can choose to show or hide specific elements, for example an upcoming event label, within your design by setting a visibility rule.
Something went wrong while submitting the form. Please contact firstname.lastname@example.org