|
|
Picture |
Displayed Date |
|
\@ "MMMM d, yyyy" |
August 1, 2001 |
|
\@ "MMM dd, yyyy" |
Aug 01, 2001 |
|
\@ "MM/dd/yy" |
08/01/01 |
|
\@ "dddd, MMMM d" |
Tuesday, August 1 |
|
\@ "ddd, MMM. d, yyyy" |
Tue., Aug. 1, 2001 |
|
\@ "MM/dd/yy hh:mm:ss am/pm" |
08/01/01 10:36:12 PM |
|
\@ "d" \* ordinal |
1st |
|
\@ "d" \* ordtext |
first |
example: { CREATEDATE \@ "MMM dd, yyyy" } = Aug 01, 2001
If you don't like the pictures you are offered, pick the one that is closest to what you want and then modify it in the Insert Field dialog box (or in the codes themselves using Toggle Field Codes).
You can also break a date into multiple fields. This can be done to use special formatting or if you use the F11 key (next field) for manually editing. Example of the former reason:
{ CREATEDATE \@ "dddd" }, the { CREATEDATE \@ "d" \*ordinal } day of { CREATEDATE \@ "MMMM" } in the year { CREATEDATE \@ "yyyy" } = Tuesday, the 1st day of August in the year 2001.
Remember that fields in headers and footers don't get updated quite as predictably. They work fine with CREATEDATE but can have the same problem as page numbers (see that topic) with DATE. If you have the date anywhere in the body of your document, you are best served using a StyleRef field in the header or footer to pick it up rather than putting a field in the header/footer.
For more on "pictures" and formatting dates see: Fields Switches.
If you are trying to produce a special format for a date in an online formfield, take a look at How to Create Ordinal (Legal) Dates in Form Fields (KB)
See also Graham Mayor's extensive page on Formatting Microsoft Word Fields with Switches, especially the section on Date Fields With Ordinals. He (and Macropod) show how to do superscripted ordinals.

If you want a menu that gives you different kinds of date fields that can be inserted into documents, download the LegalToolbars from http://www.addbalance.com/word/download.htm. This is a self-documenting global template and includes the following fields in different formats on a menu that can be used without the rest of the legal toolbar:
| Create Date (probably the one you will want to use in most forms) | |
| Saved / Modified Date | |
| Date Printed | |
| Always today (changes whenever document is opened / printed) |
Otherwise, you can download an Add-In that will give you a CreateDate field when you press Alt-Shift-D instead of a Date field. (Version 1.0)
Return to Questions List
Calculated Dates in Word (i.e. today + 14 days)
The up-to-date version of this FAQ may be found at:
http://www.addbalance.com/word/
Download this FAQ in Word 97 format
Changes / suggestions / ideas can be sent to Charles Kenyon.
since 13 April 2004
|
Copyright 2000-2006 Charles Kyle Kenyon
FAQ provided as an adjunct / hobby as a part of my web site as a
criminal defense lawyer.
|