SAP Knowledge Base Article - Public

1723296 - How to set Parameter default date value as Current date in Crystal Reports


  •  How to set parameter default date value to current date
  • The parameter will pass current date for a date field if we did not select any value and the parameter will pass the selected value if user selects the value.


  • Crystal reports 2008
  • Crystal reports 2011

Reproducing the Issue

Create a report with a Date Parameter.


  1. Create a formula in designer as
  2. if hasvalue({?My Parameter}) =false then currentdate else {?My Parameter}

  3. select Report -> Selection formulas -> Record, write the below formula

    {Field_value} <={@test}



Passing current date to parameter, default date, current date, passing current date to parameter, crystal reports , KBA , BI-RA-CR-DSL , Crystal Reports on C++ Data Semantic Layer (ClassicUniverse) , How To


Crystal Reports 2008 V1