Show/Hide Toolbars

The tc:date tag retrieves the current system date, at the time the document is generated. By default, the date will be displayed in the following format:

MM/dd/yy

To display the current system date in another format, use the format tag attribute.

You can also nest the tc:user tag, since it works the same regardless of which other tags you have outside of it. The following table describes the possible tag attributes for tc:date.

Usage of tc:date

Tag attribute

Attribute value

Description

format

"DateAttribute"

Specify the format in which the date and time will display in the end-user's generated document.

See the Possible Values for dateFormat Tag Attribute table for a list of date formats.

showTime

"yes" or "no"

Shows the time next to the date.

Note: This tag should only be used if format is not specified

timeZone

"yes" or "no"

Shows the time zone next to the date. Only necessary if the value for format does not display the time zone.

Note: The time zone is obtained from the current user's settings.

Example:

<tc:date format="EEE, MMM d, yy"/>

In the example given, the date will be inserted in the generated document and formatted by Day, Month Date, Year, as in Friday, Jun 28, 2002.