I have a Crystal Reports that is pulling data by date range and grouping it by WEEK. Also the data is displayed in Chart. Everything works fine. However, I run in into one problem.
When I group by WEEK, it displays the start date in both grouping and chart. I would like to display the END Date. I wrote a formula to take care of this, however, for some reason the dates are off:
totext(cdate(dateadd("d",6,date({CallDate}))),"MM/dd/yyyy")
For example, I do a date range between 11/10/2013 - 11/23/2013. If I run this without a formula it groups like this:
11/10/2013
11/17/2013
I want to display
11/16/2013
11/23/2013
If I run this with the formula above, I get the following output:
11/20/2013
11/27/2013
I'm not even sure how they formula calculates 20 and 26. Any suggestions on how to fix this problem?