Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 97 Date Calculations

Status
Not open for further replies.

Weber

Programmer
Feb 18, 2000
3
US
I have a merge field named Effective and I want to add one month to the date (ie 11/15/2000 becomes 12/15/00). The following formula does this except for December effective dates. When Effective date is equal 12/15/2000 the formula results in 13/15/2000. Is this a problem with Word or am I doing something wrong?

{Set MyDate {MERGEFIELD Effective }}{={MyDate \@ "M" } +1 }
{MyDate \@ "\d"}/{MyDate \@ "yyyy"}

Thanks

 
No offense, Weber, and I should be able to tell you how to do this, but I can't. I'm not even sure it CAN be done. I'd put the field in the data source.
techsupportgirl@home.com
Brainbench MVP for Microsoft Word
 
I don't think it can be done in Word but I thought I'd ask. Word and dates don't get along very well.

Thanks for responding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top