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

Crystal Reports: Date Formula 1

Status
Not open for further replies.

Mags2010

Technical User
Jun 16, 2010
12
CA
Hello:

I am currently using Crystal Reports 2008 & I am trying to find a formula that will provide me with yesterday's date 1 year ago. For example: If today is June 14, 2010 then I want to return the following date June 14, 2009. Does anyone have a solution they can share?
 
Did you mean "if today is June 15, 2010"?

dateadd("yyyy",-1,currentdate-1)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top