WinWord: Field to Insert Previous Month Based on Current Date

Last reviewed: February 5, 1998
Article ID: Q80507
The information in this article applies to:
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

To insert the previous month's date in a Microsoft Word for Windows document, use the following field:

   {QUOTE {IF {DATE \@ M} = 1 12 {={DATE \@ M} - 1}}/1/92 \@ MMMM}

REFERENCES

"Microsoft Word for Windows User's Guide," version 2.0, pages 646, 752-753, 759-762

"Microsoft Word for Windows User's Reference," version 1.x, pages 85, 89-91, 94, 97-98, 105, 117-119


KBCategory: kbusage
KBSubcategory: kbfield
Additional query words: 6.0 6.0a 6.0c 1.0 1.1 1.1a 2.0 1.x 1.0
winword 7.0 word95 word6 winword 1.10 winword2 1.10a 2.0 last word7
Keywords : kbfield kbusage
Version : 1.x 2.x 6.0 6.0a 6.0c 7.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.