Field codes: Time 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

The Time field inserts the current time in your document. Unless you specify a date-time picture switch, the time is displayed using your regional settings.

Note

When you use Date & Time and select the Update automatically check box, Word inserts the date or time as a field. Depending on the format you select, Word can use a date-time picture switch to control how the result appears.

Syntax

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

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

Note

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

A field code tells the field what to display. To toggle between viewing the field code and the field code results, press Alt+F9 on Windows or Option+F9 on Mac.

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), Word inserts a corresponding date-time picture switch.

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

Examples

⁠{⁠ TIME ⁠}⁠ results in 11:11 AM (or the default time format specified as part of the regional settings in Windows Control Panel).

⁠{⁠ TIME \@ "h am/pm" ⁠}⁠ results in 11 AM.