Calculating the previous month in a date field

  • Thread starter Thread starter ram
  • Start date Start date
R

ram

Hi
Can someone help me calculate the previous month in a date field. the code
below calculates the month however i don't know how to format the
expression to display in date format

{={DATE \@ "MM"} -1}

i also tried using set month but received an error.



Thanks for any help
 
this information is just what I needed

Thank You

macropod said:
Hi ram,

To see how to do this and just about everything else you might want to do
with dates in Word, check out my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=249902
or
http://www.gmayor.com/downloads.htm#Third_party

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

ram said:
Hi
Can someone help me calculate the previous month in a date field. the code
below calculates the month however i don't know how to format the
expression to display in date format

{={DATE \@ "MM"} -1}

i also tried using set month but received an error.



Thanks for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top