WD6X: How to Set a Default DATE Field Format in Word 6Last reviewed: February 5, 1998Article ID: Q110995 |
The information in this article applies to:
SUMMARYThis article describes how you can set a default date format in Word 6.0 for Windows by adding a line to the WINWORD6.INI file. In Microsoft Word for the Macintosh, version 6.0 the same results is achieved by adding a line to the Word Settings (6) file. This default applies whenever you insert a DATE field with no Date-Time Picture switches (\@). It does not apply when you insert the date using the Date And Time command on the Insert menu or when you insert the date using the ALT+SHIFT+D (CTRL+SHIFT+D on the Macintosh) shortcut key combination. This is because dates inserted from the menu use their own fields and formats. The ALT+SHIFT+D (CTRL+SHIFT+D on the Macintosh) shortcut key inserts the date with the format you selected most recently from the Insert Date And Time menu ({DATE \L}); therefore, it is unaffected by the DATEFORMAT setting.
MORE INFORMATION
Word Version 6.0 for WindowsTo change the default DATE field format, add the following setting to the [Microsoft Word] section of your WINWORD6.INI file:
DATEFORMAT=<format>Note: <format> is the default format you want Word to use when you insert a DATE field. The following are a few sample formats:
Setting Result ------- ------ DATEFORMAT=MMMM d, yyyy January 2, 1994 DATEFORMAT=MMMM dd, yyyy January 02, 1994 DATEFORMAT=dddd, MMMM d, yyyy Sunday, January 2, 1994 DATEFORMAT=h:mm am/pm dddd, MMMM d 10:00 am Sunday, January 2You can use any Date-Time Picture switch format for this setting. To display all the available Date-Time Picture switch formats, double-click the Help button on the Standard toolbar and then type "Date-Time Picture" (without the quotation marks). TIP: If you want Word to use the default date format when you press ALT+SHIFT+D, you can create a WordBasic macro that inserts a DATE field with no Date-Time Picture switches ({DATE}) and assign that macro to the ALT+SHIFT+D key combination. For more information about the DATEFORMAT setting in the WINWORD6.INI file, refer to the Word Readme Help file, which you can open using one of the following procedures:
Word Version 6.0 for the MacintoshTo set a default date format in Word for the Macintosh, access the Word Setting (6) file by adding the ToolsAdvancedSetting command to a menu:
TIP: You can use an AutoText entry and assign the formatted date setting to a keystroke combination:
|
Additional query words: change changing
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |