|
Supported Date and Time FormatsTable of Contents
This section describes all the different formats in a BNF-like format, that the
DateTimeImmutable, DateTime,
date_create_immutable,
date_create, date_parse, and
strtotime parser understands. The formats are grouped
by section. In most cases formats from different sections, separated by
whitespace, comma or dot, can be used in the same date/time string. For each
of the supported formats, one or more examples are given, as well
as a description for the format. Characters in single quotes in
the formats are case-insensitive ( To format DateTimeImmutable and DateTime objects, please refer to the documentation of the DateTimeInterface::format method. A general set of rules should be taken into account.
|