Archive for January, 2012
Last Day of Previous Year or First Day of Current Year Calculation in Crystal Reports
January 10, 2012
2 comments
You have a requirement to use the last day of the previous year or the first day of the current year and you don’t want to be hard coding any values into the report.
Very simply.
For Last Day of Previous Year: Create a Formula @PrioYearEnd
date(Year(currentdate)-1,12,31)
For First Day of Current Year simply remove the -1 from current date;
date(Year(currentdate),01,01)
Categories: Crystal Reports
Crystal Reports, date function, formula