CMS: Formatting Live Site Date and Time Content from Your Collection

2 min read
When you connect dates stored in a collection to page elements on your site, you can select the format you want to use to display dates and times.
New datasets experience:
In Wix Studio, we've moved datasets to the Inspector panel on the right to make them easier for you to use. Learn more about the new datasets experience in Wix Studio

To format a Date and Time field:

  1. Click the element that displays the time and date.
  2. Click the Connect to Data icon   .  
    Note: If the element is not yet connected to a dataset: 
  3. Click Connect a dataset to choose a dataset from the drop-down list. 
  4. Click Text connects to and select the Date and Time field from your collection.
  5. Click Choose a format to select the date format from the drop-down.

Formatting options are listed in the table below:

Format
Display
Short date
2/25/19
Medium date
Feb 25, 2019
Long date
February 25, 2019
Full Date
Monday, February 25, 2019, 8:45:00 PM GMT-5
Short date time
2/25/19, 8:45 PM
Long date time
February 25, 2019, 8:45 PM
Medium time (12h)
8:45 PM
Medium time (24h)
20:45
Long time (12h)
8:45:00 PM
Long time (24h)
20:45:00
Hour only
8 PM
Minute only
45
Year only
2019
Month only
February
Short month only
Feb
Day only
Monday
Notes:
  • Date and Time content can be displayed in regular text elements, and in text that appears in other elements such as buttons and galleries.
  • The date and time are displayed according to each site visitors' local time zone. 
  • Date and time language, month/date order, and other regional format options are set in your site's Regional Settings.
Important:
Time fields in an exported CSV file are in UTC+0, they are NOT in local time. Learn More

Did this help?

|