Appendix†A.†PHP Date Formatting

ConPresso uses the PHP-function date() for outputtings dates. This function allows the use of the characters listed in the following table. The frontend output of the names of days and months is determined by the rubric language you have selected.

Table†A.1.†Date Placeholders

Format CharacterDescriptionExample Return Value
alower case: Ante Meridiem or Post Meridiemam or pm
Aupper case: Ante Meridiem or Post MeridiemAM or PM
BSwatch-Internet-Time000 to 999
cISO 8601 date (added to PHP 5)2004-02-12T15:19:21+00:00
dDay of month, two digits with leading zero01 to 31
DDay of week, shortened to three charactersMon to Sun
FFull name of month, e.g. January or MarchJanuary to December
g12 hour format, without leading zeros1 to 12
G24 hour format, without leading zeros0 to 23
h12 hour format, with leading zeros01 to 12
H24 hour format, with leading zeros00 to 23
iMinutes with leading zeros00 to 59
I (großes i)Date in summer season / DST1 in summer season/DST, otherwise 0
jDay of month without leading zeros1 to 31
l (lower case 'L')Full name of dayMonday to Sunday
LLeap year or not1 for leap year, otherwise 0
mMonth as number with leading zeros01 to 12
MName of month shortened to three charactersJan to Dec
nMonth as number without leading zeros1 to 12
OTime difference to Greenwich time (GMT) in hoursexample: +0200
rRFC 2822 formatted dateexample: Thu, 21 Dec 2000 16:01:07 +0200
sSeconds with leading zero00 to 59
SSuffix for English day of months, two characters st, nd, rd or th. Use combined with j recommended.
tNumber of days of month28 to 31
TTime zone setting of computerexamples: EST, MDT ...
USeconds since begin of UNIX-epoch (January 1 1970 00:00:00 GMT)
wNumber of day in week0 (for Sunday) to 6 (for Saturday)
WISO-8601 calendar week, week starting on mondayexample: 42 (the 42th week of the year)
YYear, four digitsexample: 1999 or 2003
yYear, two digitsexample: 99 or 03
zNumber of day of the year0 to 365
ZOffset of timezone in seconds. The offset of UTC timezone west is negative and for UTC timezone east it is positive.-43200 to 43200

Example†A.1.†Date Formatting

  • Day of the week only: l

  • Year-month-day: Y-m-d

  • Hours:minutes: H:i

  • Default Value: Y-m-d H:i