Field codes: SaveDate field

Applies To
Word for Microsoft 365 Word for Microsoft 365 for Mac Word 2024 Word 2024 for Mac Word 2021 Word 2021 for Mac

Note

This content applies to the desktop versions of Word for Windows and Mac (including Word with a Microsoft 365 subscription).

The SaveDate field inserts the date and time a document was last saved, using information (Modified) on the Statistics tab in the Properties dialog box.

  • Windows: Select File > Info > Properties (below the document preview on the right side) > Advanced Properties, and then select the Statistics tab.

  • Mac: On the File menu, click Properties, and then click the Statistics tab.

Unless you select a different format, the date and time are displayed in the format specified in your operating system's region settings - Control Panel on Windows or System Settings > General > Language & Region on Mac.

Syntax

When you view the SaveDate field in your document, the syntax looks like this:

{ SAVEDATE [\@ "Date-Time Picture"] [Switches]⁠}⁠

Note

A field code tells the field what to show. Field results are what’s shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9 (Option+F9 in Word for Mac; on some Mac keyboards, press fn+Option+F9).

Switches

\@ "Date-Time Picture"

Specifies a date and time format other than the default. If you select a format in the Field dialog box (Field command, Insert menu), Microsoft Word inserts a corresponding date-time picture switch.

To use a format that's not shown in the Field dialog box, click Field Codes and type the format switch directly in the Field code box.

\h

Specifies use of the Hijri/Lunar calendar.

\s

Specifies use of the Saka Era calendar.

Example

To print information such as "Document last changed: 6 November 1996 at 1320 hours" on each page of a document, insert the following text and field in a header or footer:

Document last changed: ⁠{⁠ SAVEDATE \@ "d MMMM yyyy 'at' HHmm 'hours' " ⁠}⁠