Search all of Office.com
 
Support / Word / Word 2003 Help and How-to / Automating Tasks and Programmability / Field Types and Switches / Field Reference / Field Code - B-E
 
 

Field codes: CreateDate field

Applies to: Microsoft Office Word 2003

 

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

Inserts the date and time that a document was first saved with its current name, as recorded on the Statistics tab in the Properties dialog box (File menu).

Unless you select a different format, the date and time are displayed in the format specified as part of the regional settings in Microsoft Windows Control Panel.

ShowSwitches

\@ "Date-Time Picture"

Specifies a date and time format other than the default format. 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 listed in the Field dialog box, click Field Codes and type the format switch (format switch (\*): A switch or instruction that specifies the capitalization, numeral style, and character formatting that Microsoft Word uses in a field result.) directly in the Field codes box.

\h

Specifies use of the Hijri/Lunar calendar.

\s

Specifies use of the Saka Era calendar.

ShowExamples

To print the same text on each page of a document (such as "This deposition taken November 20, 1996."), insert the following text and field in a header or footer (header and footer: A header, which can consist of text or graphics, appears at the top of every page in a section. A footer appears at the bottom of every page. Headers and footers often contain page numbers, chapter titles, dates, and author names.):

This deposition taken { CREATEDATE \@ "MMMM d, yyyy" }.