Microsoft KB Archive/72571

= Word for Windows: Using the Ordinal Switch in a DATE Field =

Article ID: 72571

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q72571



SUMMARY
To convert the number 15 to &quot;15th&quot; in a DATE field or another field that displays a number in Microsoft Word for Windows, use the ordinal switch: \* ordinal



MORE INFORMATION
The following three examples demonstrate the use of the ordinal switch:

To display

March 21st, 1991

enter the fields:

{date\@ &quot;MMMM&quot;} {date \@ &quot;d&quot; \*ordinal}, {date \@ &quot;YYYY&quot;}

To display

Tuesday the 21st, 1991

enter the following fields:

{date \@ &quot;dddd&quot;} the {date \@ &quot;d&quot; \*ordinal}, {date \@ &quot;YYYY&quot;}

To display

10th

enter the following field:

{=\*ordinal 10}

If the &quot;d&quot; in the DATE field is used without the ordinal switch, as in the following DATE field

{date \@ &quot;MMMM d, yyyy&quot;}

the result will display:

May 21, 1991

The &quot;d&quot; abbreviation in a DATE field will return the date as the one- or two-digit number corresponding to the day of the month. In this case, the &quot;d&quot; returns 21. Adding the ordinal switch (*\ordinal) changes 21 to 21st.

Reference(s):

&quot;Microsoft Word for Windows User's Reference,&quot; pages 94, 113, 117, 118

Additional query words: winword word6 word95 th st Arabic winword2 word7 word97

Keywords: kbfield KB72571

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.