Skip to content

Filename Templating

Alix von Schirp edited this page Jan 24, 2023 · 5 revisions
Template Description Example
%YYYY Year, four digits 2022
%YY Year, last two digits 22
%MMMM Full month name December
%MMM Abbreviated month name Dec
%MM Month as decimal number, zero padded 01 - 12
%M Month as decimal number 1 - 12
%DD Day of the month, zero padded 01 - 31
%D Day of the month 1 - 31
%DDDD Full name of the weekday Monday
%DDD Abbreviated name of the weekday Mon
%WW Week number, zero padded 00 - 53
%W Week number 0 - 53
%HH Hour in 24h format, zero padded 00 - 23
%hh Hour in 12h format, zero padded 01 - 12
%H Hour in 24h format 1 - 24
%h Hour in 12h format 1 - 12
%P AM/PM designation, capitalized AM
%p AM/PM designation, am
%mm Minutes, zero padded 00 - 59
%m Minutes 0 - 59
%ss Seconds, zero padded 00 - 59
%s Seconds 0 - 59
%o Offset from UTC (ISO 8601) +01:00
%% A % sign %
%$x$ Offsets the date by x day, needs to be at the start
Clone this wiki locally