• Getting Started
  • Writing for UQ Drupal
  • Configuring site title
  • Site Editor Training
  • Planning your website
  • Administrator view
  • Alert boxes
  • Content Writing
  • Building a homepage
  • Writing for the Web
  • Site Coordinator Training
  • Banners
  • User types
  • Legacy system support section
  • Accessibility
  • Blocks
  • UQ School Template Training
  • Logging in
  • Administration
  • Brand Colours
  • Views
  • Design & Build
  • Images for the web
  • Buttons
  • Display Suite
  • UQ Base theme: Style Guide
  • Equal height elements
  • Search Engine Optimisation
  • Image Styles
  • For Developers
  • DS Inception
  • Forms
  • Drupal Glossary
  • Creating a sandbox
  • Icons
  • How to create banners
  • Training
  • List with lead
  • Google Analytics
  • UQ School Theme: Style Guide
  • Panels
  • UQ Base Regions
  • Utility classes
  • UQ Base theme
  • Quicktabs
  • Webforms
  • Tables
  • Toggle
  • Typography
  • UQ News RSS feeds
  • Block grid
  • Demo form
  • Date and Time
  • Grid
  • Menus
  • Name space standards
  • Theme settings
  • URL patterns
  • Central data
  • Maintenance mode
  • Site search
  • Developer Virtual Machine
  • Developer Contribution Workflow
  • UQ Base theme updates
  • Modules available for use in UQ Drupal
  • Migration Classes
  • DS Inception V3
  • Automated Tests
  • Date and Time

    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

     
    Previous (Demo form)Next (Grid)