How to display the current date and time in Crystal Reports?

advertisements

How do you display the current date and time in Crystal Reports?


Create a new formula and use:

CurrentDateTime

This would display the following:

18.05.2015 2:28:46PM

Then you can format it using ToText:

ToText(CurrentDateTime, "dd/MM/yyyy HH:mm:ss")

Which would display (same as first example's datetime) :

18/05/2015 14:28:46