Help Help › Store

Payroll Export Formats

A custom format is a template that describes how each date, date & time or duration is written in the payroll export. This page lists the letters each of them can use.

Custom formats ​

Every letter in the template is a placeholder that gets replaced with the matching part of the actual date, time or duration. All other characters (such as /, -, :, . or spaces) are kept exactly as you type them.

To use a letter as normal text instead of a placeholder, put a backslash in front of it: \o\n d.m.Y produces on 09.02.2026, \a\t H:i produces at 14:05 and the duration format h \h\o\u\r\s produces 4 hours.

Dates ​

For example, the format d/m/Y turns 9 February 2026 into 09/02/2026, and l, jS F Y turns it into Monday, 9th February 2026.

A date field contains a date without a time of day, so time placeholders would always show midnight and are not listed for it. All examples use Monday, 9 February 2026.

CharacterMeaningExample
Day
dDay of the month, 2 digits (01-31)09
jDay of the month, no leading zero (1-31)9
SOrdinal suffix for the day of the month (st, nd, rd or th), usually combined with jth
lDay of the week, full name (Monday-Sunday)Monday
DDay of the week, short name (Mon-Sun)Mon
NDay of the week as a number (1 for Monday - 7 for Sunday)1
wDay of the week as a number (0 for Sunday - 6 for Saturday)1
zDay of the year, starting from 0 (0-365)39
Week
WWeek number of the year, weeks starting on Monday (ISO 8601)07
Month
FMonth, full name (January-December)February
MMonth, short name (Jan-Dec)Feb
mMonth, 2 digits (01-12)02
nMonth, no leading zero (1-12)2
tNumber of days in the month (28-31)28
Year
YYear, 4 digits2026
yYear, last 2 digits26

Dates & times ​

For example, the format d/m/Y H:i turns 9 February 2026, 2:05 pm into 09/02/2026 14:05, and l, jS F Y g:i a turns it into Monday, 9th February 2026 2:05 pm.

Every letter for dates works here too, with the same examples. The letters below add the time of day, the timezone and complete dates and times.

Dates and times are written in the store’s own timezone. All examples use Monday, 9 February 2026 at 2:05:08 pm in a store in the Australia/Perth timezone, 8 hours ahead of UTC; in another timezone the timezone letters, c, r and U come out differently. A date & time field with its Store Timezone switch turned off is written in UTC instead.

CharacterMeaningExample
Time
aam or pm (lowercase)pm
AAM or PM (uppercase)PM
hHour, 12-hour format, 2 digits (01-12)02
gHour, 12-hour format, no leading zero (1-12)2
HHour, 24-hour format, 2 digits (00-23)14
GHour, 24-hour format, no leading zero (0-23)14
iMinutes, 2 digits (00-59)05
sSeconds, 2 digits (00-59)08
Timezone
eTimezone nameAustralia/Perth
TTimezone abbreviationGMT+8
ODifference to UTC, without colon+0800
PDifference to UTC, with colon+08:00
pSame as P, but shows Z when the time is UTC+08:00
ZDifference to UTC in seconds28800
Complete Date & Time
cComplete date and time (ISO 8601)2026-02-09T14:05:08+08:00
rComplete date and time (RFC 2822)Mon, 09 Feb 2026 14:05:08 +0800
UUnix timestamp: seconds since 1 January 1970 (UTC)1770617108

Durations ​

For example, the format h:M:S turns a duration of 4 hours, 32 minutes and 8 seconds into 4:32:08.

The duration is split between the units you use, and the largest unit in your format absorbs everything above it. The same duration formatted as m:S becomes 272:08, because without hours in the format the 4 hours are counted as minutes. The examples in the table below assume all units are used together.

All examples use a duration of 4 hours, 32 minutes and 8 seconds.

CharacterMeaningExample
cThe complete duration in the ISO 8601 duration formatP0Y0M0DT4H32M8S
yYears, 2 digits00
YYears, 4 digits0000
wWeeks, no leading zero0
WWeeks, 2 digits00
dDays, no leading zero0
DDays, 2 digits00
hHours, no leading zero4
HHours, 2 digits04
mMinutes, no leading zero32
MMinutes, 2 digits32
sSeconds, no leading zero8
SSeconds, 2 digits08

Please note that months are always zero in the ISO 8601 duration format.