[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

DATE

Syntax:

DATE [ switches ]

Description: Retrieves the current date and time. By default, the Gregorian calendar is used, and the date-and-time-formatting-switch used is implementation-defined.

Field Value: The current date and time.

Switches: Zero or one date-and-time-formatting-switch and zero or one of the following field-specific-switches.

\h

Use the Hijri/Lunar calendar.

\l

If no date-and-time-formatting-switch is used, the date shall use the date format last used by the hosting application when inserting a new DATE field.

\s

Use the Saka Era calendar.

 

[Example: Consider the case in which the following fields are updated in a US-English context on the given date and time:

DATE
DATE \@ "dddd, MMMM dd, yyyy HH:mm:ss"
DATE \@ "dddd, MMMM dd, yyyy HH:mm:ss" \h
DATE \@ "dddd, MMMM dd, yyyy HH:mm:ss" \s

the results are:

1/5/2006
Thursday, January 05, 2006 19:09:01
AlKhamis, Thoul Hijjah 05, 1426 19:09:01
Bruhaspathivara, Pausa 15, 1927 19:09:01

end example]

[Note: For some date-and-time-formatting-switches, the DATE and TIME2.16.5.72) fields can produce the same result. end note]