Articles on: Settings

Customising the Date Format

You can customise how dates are displayed by going into EventWork's settings.

Click on the cog at the top right of the page then click General Settings.



Click Dates in the menu on the left hand side, this will display all your options for customising dates and time.

Choose from the list of letters at the bottom of this page and enter them into the input.

If you want to display a letter and not have it change to something in the list, you will need to escape every letter you do not want changing with \ .

Examples



Date Time



j M Y H:i
1 Jun 2018 09:00

j/m/Y H:i a
13/06/2018 09:00 am

Date



l, jS \o\f F Y
Saturday, 30th of June 2018

j-m-Y
30-06-2018

j.m.Y
30.06.2018

j/m/Y
30/06/2018

Time



H:i:s
16:59:59

g:i:s a
11:59:59** am

\T\h\e \t\i\m\e \i\s H:i:s \o\n l
The time is 16:59:59 on Saturday

Options



Below is a list of all the options you can use:

Day



Day of the month with leading zeros (01 to 31)
Usage: d 

Day of the month without leading zeros  (1 to 31)
Usage: j

A textual representation of a day (Mon through Sun)
Usage: D 

A full textual representation of the day of the week (Sunday through Saturday)
Usage: l (lowercase L) 

English ordinal suffix for the day of the month, 2 characters (st, nd, rd or th)
Usage: S  

ISO-8601 numeric representation of the day of the week (1 for Monday through 7 for Sunday)
Usage: N 

Numeric representation of the day of the week (0 for Sunday through 6 for Saturday)
Usage: w 

The day of the year, starting from 0 (0 through 365)
Usage: z 

Week



ISO-8601 week number of year, weeks starting on Monday (Example: 42, the 42nd week in the year)
Usage: W 

Month



A Full textual representation of a month (January through December )
Usage: F  

A short textual representation of a month, three letters (Jan through Dec)
Usage: M 

Numeric representation of a month with leading zeros (01 through 12)
Usage: m  

Numeric representation of a month, without leading zeros (1 through 12 )
Usage: n 

Number of days in the given month (28 through 31)
Usage: t 

Year



A full numeric representation of a year, 4 digits (Examples: 1999 or 2003)
Usage: Y

A two digit representation of a year Examples: 99 or 03
Usage: y  

Whether it's a leap year (1 if it is a leap year, 0 otherwise)
Usage:  L 

ISO-8601 week-numbering year. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (Examples: 1999 or 2003)
Usage: o 

Time



Lowercase Ante meridiem and Post meridiem (am or pm)
Usage: a 

Uppercase Ante meridiem and Post meridiem (AM or PM)
Usage: A 

Swatch Internet time (000 through 999)
Usage: B 

12-hour format of an hour without leading zeros (1 through 12)
Usage: g 

24-hour format of an hour without leading zeros (0 through 23)
Usage: G 

12-hour format of an hour with leading zeros (01 through 12)
Usage: h 

24-hour format of an hour with leading zeros (00 through 23)
Usage: H 

Minutes with leading zeros (00 to 59)
Usage: i 

Seconds, with leading zeros (00 through 59)
Usage: s 

Microseconds. (Example: 654321)
Usage: u 

Milliseconds (Example: 654)
Usage: v 

Timezone



Timezone identifier (Examples: UTC, GMT, Atlantic/Azores)
Usage: e 

Whether or not the date is in daylight saving time (1 if Daylight Saving Time, 0 otherwise.)
Usage: I  (capital i)

Difference to Greenwich time (GMT) in hours (Example: +0200)
Usage: O 

Difference to Greenwich time (GMT) with colon between hours and minutes (Example: +02:00)
Usage: P
 
Timezone abbreviation (Examples: EST, MDT ...)
Usage: T
 
Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. (-43200 through 50400)
Usage: Z
 
ISO 8601 date (2004-02-12T15:19:21+00:00)
Usage: c
 
RFC 2822 formatted date (Example: Thu, 21 Dec 2000 16:01:07 +0200)
Usage: r
 
Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
Usage: U

Updated on: 29/06/2020

Was this article helpful?

Share your feedback

Cancel

Thank you!