There are two outputs for each type of date data, for example d_start_date and d_start_date_display both show a specific departure's start date. d_start_date returns dates in the format YYYY-MM-DD whereas d_start_date_display returns dates like 1 Jul 2004 that are slightly more human readable.
For a date & time output such as d_main_offer_datetime this would return in the format YYYY-MM-DD HH:MM:SS
In addition to the two standard formats, custom formats are possible
For example <$TourCMSdeparture d_id="32" output="d_main_offer_datetime" format="2822"$> would return the date & time in RFC 2822 format.
The following formats can be used:
Format | Note | Examples |
2822 | RFC 2822 | Thu, 3 Jun 2004 Thu, 3 Jun 2004 11:23:19 +0100 |
8601 | ISO 8601 | YYYY-MM-DD YYYY-MM-DD HH:MM:SS |
STANDARD PHP DATE PARAMETERS | ||
a | Lowercase Ante meridiem and Post meridiem | am or pm |
A | Uppercase Ante meridiem and Post meridiem | AM or PM |
d | Day of the month, 2 digits with leading zeros | 01 to 31 |
D | A textual representation of a day, three letters | Mon through Sun |
F | A full textual representation of a month, such as January or March | January through December |
j | Day of the month without leading zeros | 1 to 31 |
l | A full textual representation of the day of the week (lowercase 'L') | Sunday through Saturday |
m | Numeric representation of a month, with leading zeros | 01 through 12 |
M | A short textual representation of a month, three letters | Jan through Dec |
n | Numeric representation of a month, without leading zeros | 1 through 12 |
O | Difference to Greenwich time (GMT) in hours | +0200 |
s | Seconds, with leading zeros | 00 through 59 |
t | Number of days in the given month | 28 through 31 |
T | Timezone setting of the webserver | EST |
w | Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday) | 4 |
Y | A full numeric representation of a year, 4 digits | 2003 |
y | A two digit representation of a year | 99 |
z | The day of the year (starting from 0) | 0 through 365 |
Z | Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive | -43200 through 43200 |