Tag Definitions %DATE%

Retrieves and displays the date of a page

A special text field for managing and formatting dates.

The user must enter dates as 'yyyy-mm-dd', and this tag will output the date in the defined format.

Attribute Definitions
ParameterTypeDescription
captionStringThe caption to label the input field, default is 'Editorial Date (yyy-mm-dd)'
srcPublishedDate
ExpiresDate
CreatedDate
ModifiedDate
EditorialDate
Date the User has defined for the page to be published.
Date the User has defined for the page to expire.
Date the page was created.
Date the page was last modified.
User defined Editorial date, if empty, will use the publication date instead.
formatfull
long
medium
short

<custom>
Pre-defined i.e. Mon, March 17, 2008
Pre-defined i.e. March 17, 2008
Pre-defined i.e. Mar 17, 2008
Pre-defined i.e. 3/17/08

display a custom date format by mixing these values:
EEEE: Full name of the day
EEE: Abbreviated name of the day
MMMM: Full name of the month
MMM: Abbreviated name of the month
MM: Two digit month of the year, uses a leading zero
dd: Two digit day of the month, uses a leading zero
d: Day of the month with no leading zero
yyyy: Four digit year, i.e. 2008
yy: Two digit year, i.e. 08

Example 1

In this example the full editorial date of the page is rendered to the list item:

  1. <li>%TITLE%, - updated: %DATE(src=editorialDate, format=full)%</li>
RENDERED OUTPUT:
<li>Portfolio page - updated: Wed, August 15, 2007</li>

Example 2

In this example a custom modified date is rendered with an alternative page title to the head of the page:

  1. <h1>%ALTTITLE% - %DATE(src=modifiedDate, format=dd MMM yy)%</h1>
RENDERED OUTPUT:
<h1>More News From The Leading Edge - 01 Dec 2007<h1>

Example 3

This example demonstrates the output of different format combinations:
EEE MMM yyyy = Fri Jan 2005
d MM yy = 11 01 05
dd MMMM = 11 January

See Also:

Video Guides

How To...

Tag Definitions