Date and Time Tokens

Parent Previous Next

Date or time tokens – For using with [Date:ddMMyyy]




Token

Example

Explanation


d

26/5/2009

Short date


D

Thursday 26 May 2015

Long Date


dd

26

Day of the month


ddd

Thu

Short weekday (3 character)


dddd

Thursday

Full weekday


f

26 May 2015 12:42

Date and 24hour time


FF

26 May 2015 12:42:23

Date and 24hour time with seconds


g

26/05/2015 12:42

Short date with 24hour time.


G

26/05/2015 12:42

Short date with 24hour time


M or m

28 May

Simple date


R or r

Thu, 28 May 2015 12:42:23 GMT

RFC1123 format


t

12:42

Short time


T

12:42:23

Long time


HH

15

Hour – 24hour clock


hh

12

Hour – 12 hour clock


mm

42

Minute


u

2015-05-28 12:42:23Z

Universal Time (sortable)


yy

15

Short year (2 characters)

Note: lower case:


yyyy

2015

Long year (4 characters)

Note: lower case:



Date and TimeTokens can be combined within the [Date:] token. For example [Date:ddd Y] would give Thu May 2015.  In this example 'ddd' renders the short weekday (Thu) and 'Y' renders the month and year (May 2015).  By combining date and time tokens you should be able to render the date and time in any format that may be required.