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

Date Help

Status
Not open for further replies.

pungigis

Programmer
Dec 5, 2007
71
US
Ok, currently I have the ability to run a report on

currentdate - 1 to return yesterdays data, I need to be able to do the same thing only for months, I need to be able to run monthly for prior 2 months of data, can I use lastfullmonth function or is there an easier way???
 
Try:

{table.date} in dateserial(year(currentdate),month(currentdate)-2,1) to
dateserial(year(currentdate),month(currentdate),1)-1

-LB
 
Or checkout the dateadd() function in help. You did not mention what version of crystal you have, I believe dateadd() made its debut in crystal 8.5.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top