Templatevar: date

Inserts a date using the date format specified in the template. Optionally, a custom date format can be given as a parameter.

Arguments

    Optional
    • format: format to be used to format the date

Specials

Four special parameters are possible:

  1. rfc822: RFC822 date in local time
  2. rfc822GMT: RFC date in GMT time
  3. iso8601: ISO-8601 date (W3C Date and Time Format profile). Example: 2002-10-02T10:00:00-05:00
  4. utc: Same as iso8601, but the date is expressed in UTC, using a "Z" for the timezone indicator.

Examples

<%date%>
<%date(%x)%>
<%date(rfc822)%>
<%date(rfc822GMT)%>
Template Vars