Order PrinterTemplatesLayoutsDate time format

Date time format

Change your date time format for your layout

Date (Year, Month, Day)

%YYear including century, zero-padded2024
%yYear without century, in range (0.99), zero-padded01, 24
%CCentury, zero-padded01, 20
%mMonth of the year, in range (1..12), zero-padded01, 12
%BFull month name, capitalizedJanuary, December
%bAbbreviated month name, capitalizedJan, Dec
%hAbbreviated month name, capitalizedJan, Dec
%dDay of the month, in range (1..31), zero-padded01, 31
%eDay of the month, in range (1..31), blank-padded1, 31
%jDay of the year, in range (1..366), zero-padded001, 365

Time (Hour, Minute, Second, Subsecond)

%HHour of the day, in range (0..23), zero-padded01, 23
%kHour of the day, in range (0..23), blank-padded1, 23
%IHour of the day, in range (1..12), zero-padded01, 12
%lHour of the day, in range (1..12), blank-padded1, 12
%PMeridian indicator, lowercaseam, pm
%pMeridian indicator, uppercaseAM, PM
%MMinute of the hour, in range (0..59), zero-padded01, 59
%SSecond of the minute in range (0..59), zero-padded01, 59
%LMillisecond of the second, in range (0..999), zero-padded000, 999
%NFractional seconds, default width is 9 digits (nanoseconds)323091400
%sNumber of seconds since the epoch1656505136

Timezone

%zTimezone as hour and minute offset from UTC-0500
%ZTimezone nameCentral Daylight Time

Weekday

%AFull weekday nameWednesday
%aAbbreviated weekday nameWed
%uDay of the week, in range (1..7), Monday is 11, 7
%wDay of the week, in range (0..6), Sunday is 00, 6

Week Number

%UWeek number of the year, in range (0..53), zero-padded, where each week begins on a Sunday26
%WWeek number of the year, in range (0..53), zero-padded, where each week begins on a Monday25

Shorthand Conversion Specifiers

%cDate and timeWed Jun 29 08:01:41 2024
%DDate06/29/24
%FISO 8601 date2022-06-29
%vVMS date29-JUN-2022
%xSame as %D
%XSame as %T
%r12-hour time01:00:00 AM, 01:00:00 PM
%R24-hour time01:00, 13:00
%T24-hour time01:00:00, 13:00:00

On this page

Need help?

You are having problems and need our support. Please contact us here.