$date-date-format, $date-dateTime-format
$date-date-format, $date-dateTime-format — Format strings for dates and dateTimes.
Parameter:
{}date-date-format
{}date-dateTime-format
Defined in:
param.xsl (2)
Used in:
main.xsl, param.xsl
Synopsis
$date-date-format := '[D01] [MNn,*-3] [Y0001]'
$date-dateTime-format := '[H01]:[m01] [D01] [MNn,*-3] [Y0001]'
Description
The most convenient format for storing dates that will be machine processed: sorted, indexed, etc, is ISO 8601. When publishing these dates, it’s often desirable to use a different format, one more familiar to readers.
A pubdate
that conforms to an ISO 8601 date (“yyyy-mm-dd”)
will be formatted with the $date-date-format
;
one that conforms to an ISO 8601 dateTime (“yyyy-mm-ddThh:mm:ss”)
will be formatted with the $date-dateTime-format
.
See also f:date-format()
.