Symptom
In Crystal Reports, the formula "year(currentdate)" returns a wrong year value.
Environment
- Crystal Reports 2008
- SAP Crystal Reports 2011
- SAP Crystal Reports 2013
Reproducing the Issue
- Open any Crystal report which is designed in previous version of Crystal Reports Designer (earlier than Crystal Reports 2008).
- Create a new formula "year(currentdate)".
- Insert the formula in the report.
- Refresh the report.
Resolution
- Launch Crystal Reports 2008/2011/2013 and open the report which contains the formula.
- Click on Report > Set Print Date and Time > Select the radio button: Today's Date and Time.
Keywords
Crystal Reports, CR, year(currentdate), formula, cr , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
Crystal Reports 2008 V1 ; SAP Crystal Reports 2011 ; SAP Crystal Reports 2013