Display Dates Last Full Month Crystal Reports

Hi

I have a report that needs to be run for the Last Full Month. Is there a way to display the date range on the report using Last Full Month? or is there another way to do this?

Example I run the report with Last full Month I want to display on the report:

3/1/11-3/31/31

Any help greatly appreciated.
nobile00Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Crystal has a LastFullMonth function.

Just use something like this in the record selection

{YourDateField} IN LastFullMonth

mlmcc
0
nobile00Author Commented:
I am using the LastFullMonth function in Crystal.  The date field in modified_on: DateTime.

Is there a way to display either the dates or the month and year which is contained in the lastfullmonth?

Like display on the report March 2011 or 3/1/11 to 3/31/11?
0
mlmccCommented:
Try this

CStr(Minimum(LastFullMonth,"m/d/yy") & " to " & Maximum(LastFullMonth,"m/d/yy")

To get the other

CStr(Minimum(LastFullMonth,"MMMM yyyy")

mlmcc
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

nobile00Author Commented:
I put the formulas in the report but Crystal is indicating that both are missing a ) try to put in a few places and still get it's missing.
0
mlmccCommented:
CStr(Minimum(LastFullMonth),"m/d/yy") & " to " & CStr(Maximum(LastFullMonth),"m/d/yy")

CStr(Minimum(LastFullMonth),"MMMM yyyy")


Sorry about that.

mlmcc
0
nobile00Author Commented:
Thanks I tried the
CStr(Minimum(LastFullMonth),"m/d/yy") & " to " & CStr(Maximum(LastFullMonth),"m/d/yy")

and it is not returning the month just returning M
0
mlmccCommented:
CStr(Minimum(LastFullMonth),"M/d/yy") & " to " & CStr(Maximum(LastFullMonth),"M/d/yy")

mlmcc

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nobile00Author Commented:
Thanks for you help!  The formula is working fine.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.