Article ID: 176692
Article Last Modified on 8/20/2007
APPLIES TO
- Microsoft Word 97 Standard Edition
- Microsoft Word 98 for Macintosh
This article was previously published under Q176692
SUMMARY
In Word, you can insert a date using the DATE field. You can add switches to the DATE field to customize the date format.
This article describes the following:
- how to create a custom date format in Word
- how to create an AutoText entry for a custom date format
- how to record a custom date format macro so that you can use a toolbar button to insert the date
MORE INFORMATION
Creating a Custom Date Format in Word
To insert a date and add switches to control the date format, follow these steps:
- On the Insert menu, click Field. Under Categories, click the Date and Time. Under Field Names, click Date, and then click Options.
- Click the General Switches tab and under Date-Time, select a date format, click Add to Field, and then click OK twice.
In the following example, the date field codeDATE \@ "dd MMMM yyyy"
returns:
12 July 1997
Creating an AutoText Entry for a Custom Date Format
To store the date field as an AutoText entry, follow these steps:
- In your document, select the date field that you inserted using the steps in the previous section.
- On the Insert menu, point to AutoText, and then click New.
- Type a name for the AutoText Entry and then click OK.
Recording a Custom Date Macro to Insert the Date from a Toolbar Button
To record an "insert date" macro and assign it to a toolbar button, follow these steps:
- On the Tools menu, point to Macro, and then click Record New Macro.
- Under Macro Name, type in a name for your macro and then click Toolbars.
- Drag your macro to a toolbar and then click Close to close the Customize dialog box.
- On the Insert menu, click Field. Under Categories, click Date And Time.
Under Field Names, click Date, and then click Options.
- Click the General Switches tab and under Date-Time, select a date format, click Add To Field, and then click OK twice.
- Click Stop Recording on the macro toolbar.
For more information about date field format switches, click the Office Assistant, type "switches," click Search, click "general switches", click Date-Time Picture, and then click Date Instructions.
NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Word Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
120802 Office: How to Add/Remove a Single Office Program or Component
For additional information, please see the following article in the Microsoft Knowledge Base:
Additional query words: Additional query words: word97 word8
Keywords: kbfield kbhowto KB176692