ID: Q59019
The information in this article applies to:
In Microsoft Word, you can create custom date formats. To create a custom date format, see the section in the "More Information" section of this article that applies to your version of Word.
Word inserts the date using the DATE field. You can add switches to the DATE field to customize the date format. To insert a date and insert switches to control the date format:
1. On the Insert menu, click Field. Click the Date and Time category
on the left.
2. Under Field Names, click Date, then click Options.
3. In the Field Options dialog box, click the General Switches tab.
4. Select a date format from the Date-Time list box and click the Add
to Field button. Click OK.
5. Click OK.
In the following example, the date field code
DATE \@ "dd MMMM yyyy"
returns
12 July 1994
The "dd" switch returns "12", the "MMMM" switch returns the month
July, and "yyyy" returns the year 1994.
To store the date field as an AutoText entry do the following:
1. Select the date field.
2. On the Edit menu, click AutoText.
3. Type a name for the AutoText Entry and click Add.
In Word 6.x for more information on the date switches, do the following:
1. Click Search for Help On the Help menu.
2. Type "general switches" (without the quotation marks) and click Show
Topics.
3. Click General Switches for Fields and click Go To.
4. Click Date-Time Picture @
In Word 7.x for more information on the date switches, do the following:
1. On the Help menu, click Microsoft Word Help Topics.
2. Type "general switches" (without the quotation marks) and click Show
Topics.
3. Click General Switches and click Display.
4. Click Date-Time Picture @.
5. Clcik Date instruction.
Word 5.0 has special predefined glossary entries so you can easily create custom date formats. To create a custom date format in Word 5.0, do the following:
1. On the Edit menu, click Glossary.
2. Select the glossary entry of the item to be inserted and click the
Insert button. For example the Print Day Of Month item inserts the
current day in the document.
NOTE: If you want the date to always update, select glossary
entries preceded by the word "print."
3. Repeat steps 1-2 as many times as necessary to insert various
formats.
NOTE: Once you create the date format, you can make it into a glossary
entry and insert it anywhere in the document.
To use the newly created format as a glossary entry, do the following:
1. Select the newly created date.
2. On the Edit menu, click Glossary.
3. Type a name for this glossary entry.
4. Click the Define button.
NOTE: Save your changes to the glossary when you finish editing.
You can use AutoMac to insert a European-style date (a day, year, month format, such as 5 September 1990) by modifying the Word standard Glossary format "Date-Now-Long."
To create an AutoMac macro that inserts the European date format, make sure AutoMac III is properly installed, then do the following:
1. On the File menu, click New.
2. Click the A in the upper-left corner of the window to bring up
the main AutoMac dialog box. Click the Record button.
3. Type a key combination and a name for the macro (for example,
"Date-Now-European"). Click the Record button.
4. Press the RETURN key.
5. Press COMMAND+K to bring up the Glossary dialog box.
6. Press the DOWN ARROW key enough times to select the "Date-Now-Long"
entry. Press RETURN to insert it.
7. Press COMMAND+OPTION+APOSTROPHE ('). The word "More" should appear
in the lower-left corner of the window.
8. To move to the start of the line, type "K" (without the quotation
marks).
9. On the numeric keypad, press the MINUS SIGN key . The words "Extend
to" should appear in the lower-left corner of the window.
10. Press the SPACEBAR once to extend the selection to the first space
in the line.
NOTE: Skip step 11 if you do not want to insert the day of the week.
Some Macintosh computers have been configured to suppress the day of
the week for the long date format.
11. Press the DELETE key once (to delete the selection).
12. On the numeric keypad, press the MINUS SIGN key. The words "Extend
To" should appear in the lower-left corner of the window.
13. Press the SPACEBAR once to extend the selection to the next space
in the line (that is, the space after the month).
14. Press COMMAND+X to cut the month.
15. Press COMMAND+RIGHT ARROW (to move past the day).
16. Press the RIGHT ARROW key to move past the comma.
17. Press the DELETE key to remove the comma and press the SPACEBAR
to insert a space.
18. Press COMMAND+V to paste the month.
19. Press the DELETE key once to delete the extra space between the
month and the year.
19. Press COMMAND+OPTION+APOSTROPHE. The word "More" should appear in
the lower-left corner of the window.
20. To move to the start of the line, type "K" (without the quotation
marks).
21. Press the DELETE key once (to delete the initial carriage return).
22. Click the A in the upper-left corner of the window to open the end
of the recording AutoMac dialog box. Choose the Stop button.
To insert this date format, position the insertion point where the
date is to appear, then press the key combination that was assigned to
the macro in step 3 above.
Additional query words:
Keywords : kbfield winword macword word6 word7 word95 macword5
Version : WINDOWS:6.0,6.0a,6.0c,7.0,7.0a;MACINTOSH:4.0,5.0,5.1,5.1a,6.0,6.0.1,6.0.1a
Platform : MACINTOSH WINDOWS
Issue type : kbhowto
Last Reviewed: November 19, 1997