1713567 - How to calculate number of days in a year

SAP Knowledge Base Article - Public

1713567 - How to calculate number of days in a year

Symptom

Calculate the number of days in a particular year

Environment

  • Crystal Reports 2008
  • Crystal Reports 2011

Resolution

  1. Create a formula in Crystal Designer as below
    datediff("d",cdate(year(currentdate),01,01),cdate(year(currentdate)+1,01,01))
  2. Place it on details section

Keywords

days in a year, days, year, leap year, days in a leap year, crystal Reports , days formula, number of days in a year , KBA , BI-RA-CR-DSL , Crystal Reports on C++ Data Semantic Layer (ClassicUniverse) , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports 2011