Skip to main content
Learning
Date and time formatting

Date and time formatting is a means of controlling the appearance of dates and times when they are displayed.

The way the day, month, and year are arranged depends on the country. The separator used between the different parts of the date can also vary, such as a dots, hyphens, or slashes. Furthermore, specific requirements may determine whether to display a shortened date or include the day of the week.

Similar considerations apply to displaying time. Choose between a 24-hour format or a 12-hour format, and decide whether to include seconds and timezone information.

Date and time formatting allows you to have precise control over how your dates and times are presented.

Applies To
  • Form Elements: Capture Data and Display Data
  • Data Types: Date, Time, Datetime, Date{}, Time{}, Datetime{}

Setting display formats

You can set display formats within an Activity or Trigger form. To do this, open the form builder.

On the form, select a Display Data or Capture Data element that uses one of the supported data types. When selected, the right-hand property panel will show options related to that data type.

To set the format, type the desired format string directly into the Display format date or Display format time field in the property panel.

image

Date display format property


image

Time display format property

Supported date formats

Date PartFormat PatternExampleDisplay asNotes
Yeary01/01/20242024shows as many digits as necessary (987, 2017)
 yo01/01/20242024thshows as many digits as necessary (987th, 2017th)
 yy01/01/202424always show year in two digits (87, 17, 09)
MonthM01/09/20249
 MM01/09/202409
 MMM01/09/2024Sep
 MMMM01/09/2024September
Day of weeke01/09/20247Monday =1, Sunday =7
 eo01/09/20247th
 ee01/09/202407
 eee01/09/2024Sun
 eeee01/09/2024Sunday
 eeeee01/09/2024S
 eeeeee01/09/2024Su
Day of monthd01/09/20241
 d017/09/202417th
 dd01/09/202401
QuarterQ28/06/20242
 Qo28/06/20242nd
 QQ28/06/202402
 QQQ28/06/2024Q2
 QQQQ28/06/20242nd quarter
EraG28/06/2024AD
 GGGG28/06/2024Anno Domini

Examples

UK date format
eeee, dd/MM/y

Tuesday, 13/02/2024

US date format
eeee, MM/dd/y

Tuesday, 02/13/2024

European date format
eeee, dd.MM.y

Tuesday, 13.02.2024

Three character (abbreviated) day of week
eee, dd/MM/y

Tue, 13/02/2024

Month as a word
eeee d MMMM y

Tuesday 13 February 2024

Three character (abbreviated) month
eeee d MMM y

Tuesday 13 Feb 2024


Supported time formats

Time PartFormat PatternExampleDisplay asNotes
Hour (12 hour)h14:002shows as many digits as necessary (2, 11)
 ho14:002ndshows as many digits as necessary (2nd, 11th)
 hh14:0002always show hour in two digits (02, 11)
Hour (24 hour)H09:009shows as many digits as necessary (9, 11)
 Ho09:009thshows as many digits as necessary (9th, 21st)
 HH09:0009always show hour in two digits (09, 21)
Minutem00:077shows as many digits as necessary (7, 11)
 mo00:077thshows as many digits as necessary (7th, 11th)
 mm00:0707always show minute in two digits (07, 11)
Seconds00:00:033shows as many digits as necessary (7, 11)
 so00:00:033rdshows as many digits as necessary (7th, 11th)
 ss00:00:0303always show seconds in two digits (07, 11)
Day perioda07:00:00AMAM or PM (12 hour clock)
 aaa07:00:00amam or pm (12 hour clock)
 aaaa07:00:00a.m.a.m. or p.m. (12 hour clock)
 b00:00:00midnightAM, PM, noon or midnight (12 hour clock)
 bbb12:00:00noonam, pm, noon or midnight (12 hour clock)
 bbbb07:00:00a.m.a.m., p.m., noon or midnight (12 hour clock)
 B09:30:00in the morningat night, in the morning, in the afternoon or in the evening
Timezonez09:00:0009:30 GMT+1
 zzzz09:00:0009:30 GMT+01:00

Examples

24 Hour time format
HH:mm

14:07

12 Hour time format with am/pm
h:mm aa

2:07 pm

Leading zero for hour
hh:mm aaa

02:07 pm

Supported datetime formats

Date/Time formatting is achieved by combining a date format pattern with a time format pattern, as shown in the following example:

Date and time in 12 Hour time format and timezone
eeee, dd/MM/y 'at' h:mm:ss aaa

Friday, 24/05/2024 at 2:00:00 pm GMT+01:00

Literal text

To include literal text in date and time patterns, enclose it in single quotes 'my literal text'. To include a single quote within the literal text, double it: 'o''clock'.