Field codes: Date field

The Date field inserts the current date.

When you click Date & Time in the Text group on the Insert tab, Word inserts a Date field.

You can also insert a Date field in the body of a document by doing the following:

  1. On the Insert tab, in the Text group, click Quick Parts, and then click Field.

  2. In the Field dialog box, under Field names, click Date.

Note: The Date and Time fields can display a date, a time, or both, depending on the format you specify in a date-time picture switch.

Syntax

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

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

Note:  A field code tells the field what to show. Field results are what is 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.

Switches

\@ "Date-Time Picture"

Specifies a date format other than the default format. If you select a format in the Field dialog box, Word inserts a corresponding date-time picture switch.

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

\l

Inserts the date with the last format that you selected in the Date and Time dialog box.

\h

Specifies use of the Hijri/Lunar calendar.

\s

Specifies use of the Saka Era calendar.

Examples

{ DATE \@ "dddd, MMMM d" } displays Saturday, November 26

{ DATE \@ "h:mm am/pm, dddd, MMMM d" } displays 10:00 AM, Saturday, November 26

Connect with an expert
Contact us
Expand your skills
Explore training

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×