Link to home
Start Free TrialLog in
Avatar of Jeff S
Jeff SFlag for United States of America

asked on

Help with a Crystal Report Formula - remove time

How can I remove the time component from the date? I have tried several things and unable to remove the time. Current output, for example is showing as: '12/1/1988 12:00:00AM'

Current Crystal Formula:

if cdate({rpPatProfile.DateEnteredUS}) = cdate("01/01/1800") then "" else cstr({rpPatProfile.DateEnteredUS})
SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James0628
James0628

What mlmcc said, but you use MM in the format string for months (with a leading 0).  mm is for minutes.  You can look up CStr in the CR Help to see the different format string options.

 James
Avatar of Jeff S

ASKER

Loaded and tested - the time stamp is gone but the date is messed up.

What should be: 12/01/1988 is showing on print out as: 00/01/1988
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jeff S

ASKER

Thanks!