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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculating next month 1

Status
Not open for further replies.

Sumisu

Technical User
Jan 23, 2003
5
DE
hi,

i have to calculate the date of the next month in crystal:

eg: 15-FEB-2003 should be 15-MAR-2003

I can do it like {Date} + 30 but then it would not be the 15th for each month because the length of each month is different...

any ideas?

thanks a lot!
 
Try the dateadd function:

dateadd("m",1,{table.date})

-LB
 
great - that works fine - did not know that funtion...

Thx a lot!

Elmar
 
This works in version 8 and above. For version 7 or lower I have formula for adding months on the formulas page of my web site.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
- tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top