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.
| Character | Meaning | Example |
|---|---|---|
| Day | ||
d | Day of the month, 2 digits (01-31) | 09 |
j | Day of the month, no leading zero (1-31) | 9 |
S | Ordinal suffix for the day of the month (st, nd, rd or th), usually combined with j | th |
l | Day of the week, full name (Monday-Sunday) | Monday |
D | Day of the week, short name (Mon-Sun) | Mon |
N | Day of the week as a number (1 for Monday - 7 for Sunday) | 1 |
w | Day of the week as a number (0 for Sunday - 6 for Saturday) | 1 |
z | Day of the year, starting from 0 (0-365) | 39 |
| Week | ||
W | Week number of the year, weeks starting on Monday (ISO 8601) | 07 |
| Month | ||
F | Month, full name (January-December) | February |
M | Month, short name (Jan-Dec) | Feb |
m | Month, 2 digits (01-12) | 02 |
n | Month, no leading zero (1-12) | 2 |
t | Number of days in the month (28-31) | 28 |
| Year | ||
Y | Year, 4 digits | 2026 |
y | Year, last 2 digits | 26 |
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.
| Character | Meaning | Example |
|---|---|---|
| Time | ||
a | am or pm (lowercase) | pm |
A | AM or PM (uppercase) | PM |
h | Hour, 12-hour format, 2 digits (01-12) | 02 |
g | Hour, 12-hour format, no leading zero (1-12) | 2 |
H | Hour, 24-hour format, 2 digits (00-23) | 14 |
G | Hour, 24-hour format, no leading zero (0-23) | 14 |
i | Minutes, 2 digits (00-59) | 05 |
s | Seconds, 2 digits (00-59) | 08 |
| Timezone | ||
e | Timezone name | Australia/Perth |
T | Timezone abbreviation | GMT+8 |
O | Difference to UTC, without colon | +0800 |
P | Difference to UTC, with colon | +08:00 |
p | Same as P, but shows Z when the time is UTC | +08:00 |
Z | Difference to UTC in seconds | 28800 |
| Complete Date & Time | ||
c | Complete date and time (ISO 8601) | 2026-02-09T14:05:08+08:00 |
r | Complete date and time (RFC 2822) | Mon, 09 Feb 2026 14:05:08 +0800 |
U | Unix 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.
| Character | Meaning | Example |
|---|---|---|
c | The complete duration in the ISO 8601 duration format | P0Y0M0DT4H32M8S |
y | Years, 2 digits | 00 |
Y | Years, 4 digits | 0000 |
w | Weeks, no leading zero | 0 |
W | Weeks, 2 digits | 00 |
d | Days, no leading zero | 0 |
D | Days, 2 digits | 00 |
h | Hours, no leading zero | 4 |
H | Hours, 2 digits | 04 |
m | Minutes, no leading zero | 32 |
M | Minutes, 2 digits | 32 |
s | Seconds, no leading zero | 8 |
S | Seconds, 2 digits | 08 |
Please note that months are always zero in the ISO 8601 duration format.