cancel
Showing results for 
Search instead for 
Did you mean: 

DateTime static parameter setting currentDate as default parameter

Former Member
0 Kudos
68

Hi

I am using Crystal Reports 2008 designer,

I have a Datetime static parameter with optional default prompt. If I am not selecting the parameter I would like disply the systemdate or currentDate in the report.

But the parameter screen is not allowing to give the currentDateTime option ,instaed I have to give a value like "2009/09/09 12:12:12"

Is there any workaround for this?

Thanks

Jorge

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try this

if hasvalue({?date parameter}) then

{?date parameter}

else

currentdatetime

this formula returns current date if we run the report without any value in date parameter

regards,

Raghavendra.G

Answers (0)