To use central date formats:

  1. Install the UQ Date Format module
  2. Go to Configuration > Regional and language > Date and time
  3. The UQ date formats will display. Click Save Configuration to enable them for use on the site.
Date Format Label​ Output Machine Name

Date and time
Date and time (long)
Date and time (short)
Date and time (numeric)

Time and Date
Time and Date (long)
Time and Date (short)

19 September 2013 11:55am
Thursday 19 September 2013 11:55am
Thu 19 Sep 2013 11:55am
19/09/2013 11:55am

11:55am 19 September 2013
11:55am Thursday 19 September 2013
11:55am Thu 19 Sep 2013

 

Date
Date (long)
Date (short)
Date (numeric)

Day and month
Day and month (short)​
Month and year
Month and year (short)

19 September 2013
Thursday 19 September 2013
19 Sep 2013
19/09/2013

19 September
19 Sep
September 2013
Sep 2013

 

Month
Day of week

September
Thursday

 

Time (12H)
Time (24H)

11:55am
09:55

 

Week number
Day number (Sun:0 - Sat:6)

38
4

 

Date and Time Periods

The formats listed below require development to allow a date field to display depending on the specific contents of one or more date attributes.

Duration (same month)
Duration (different month)
Duration (different year)

Duration (using long date)
Duration (using standard date)
Duration (using short date)

25–27 July 2013
25 July to 1 August 2013
Tuesday 25 December 2013 to Monday 4 January 2014

Monday 25 July to Sunday 1 August 2013
25 July to 1 August 2013
Mon 25 Jul to Sun 1 Aug 2013

 

Duration (time and date)
Duration (time and date)

25 July to 1 August from 9:00am–12pm
9:00am–12pm from 25 July to 1 August

 

Time Periods

11:40am–2:20pm Monday 25 July
11:30am–12pm
1pm–2:30pm
12noon–12midnight

 
Duration (Hours)

2hr 30min
2hr 5min 6sec
08:25:05

 
Relative (descriptive)

Today
Yesterday
Last week
Last month

Tomorrow
Next week
Next month

 

Relative (specific)

5 sec ago
1 min ago
5 days ago
1 month ago