Solved

Crystal Reports last day of month

Posted on 2016-10-11
2
33 Views
Last Modified: 2016-10-12
I am using this to get the last day of the month
date(year({OPERATION.SCHED_START_DATE}),month({OPERATION.SCHED_START_DATE})+1,1)-1
It works until the OPERATION.SCHED_START_DATE is in December.  Then I get the following:
A month number must be between 1 and 12.
What do I need to change for it to recognize going from December to January?
0
Comment
Question by:slmc
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41839258
Try this

DateAdd('m',1,Date(year({OPERATION.SCHED_START_DATE}),month({OPERATION.SCHED_START_DATE}),1)) -1

Open in new window


mlmcc
0
 

Author Closing Comment

by:slmc
ID: 41840226
That is it.  Thank you.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now