[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

SAVEDATE

Syntax:

SAVEDATE [ switches ]

Description: Retrieves the date and time on which the document was last saved, as recorded in the DateModified element of the Core File Properties part. By default, the Gregorian calendar is used and the date-and-time-formatting-switch used is implementation-defined. For a document that has never been saved, the date and time corresponds to 0000-00-00T00:00:00 local time and each text component is XXX.

Field Value: The date and time on which the document was last saved.

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.

\s

Use the Saka Era calendar.

[Example: Consider the case in which the DateModified element is as follows:

<DateModified>2006-01-06T20:15:00Z</DateModified>

and the following fields are updated in a US-English context that is UTC -5:

SAVEDATE
SAVEDATE \@ "dddd, MMMM dd, yyyy HH:mm:ss"

the results are:

1/6/2006 3:15:00 PM
Friday, January 06, 2006 15:15:00

For a document that has never been saved, the result is:

0/0/0000 0:00:00 AM
XXX, XXX 00, 0000 00:00:00

end example]