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

Best way to create a crystal formula to get the prior month last day date 1

Status
Not open for further replies.

jchewsmith

Technical User
Nov 20, 2006
160
0
0
US
I am trying to find a fiscal year to date selection.

I have the forumla to get the fiscal year begin date but I need a formula to get the last day of the previous month end.

So if I run report on 7/5, it runs through 6/30
or if I run the report on 4/28 it run through 3/31.

 
The simplest approach is to subtract 1 day from the 1st of the current month, ie:

Code:
DATE(Year(CurrentDate), Month(CurrentDate), 1) - 1

Hope this helps.

Cheers
Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top