Hi Team,
I am having two subreports and I am calling both of them from my main report. I have a date range in the main report. And the end user wants in one sub report to show data with date range in 2016 and the other sub report to display data in the same date range but in 2015. I am passing the same date parameter from my main report to both the sub reports and subtracting 366 from the first sub report to show 2015 data for a particular day while showing 2016 data in the second subreport for the same day and month. However as 2016 is a leap year when I use this logic it will not work for january and february as I will need to subtract 365 for january and february to get the corre. Is there any code that I can use to check for january and february and subtract 365 from the passed date parameter from the main report else subtract 366 for other months of 2016 for the fist subreport?
Regards,
Ashwin