Link to home
Start Free TrialLog in
Avatar of Amour22015
Amour22015

asked on

Crystal Reports 2008 - Formula for Date String

Hi and thanks

I have this formula:
Left({TEMP_PWC_Sales_Report_SP_MAIN.mtransferdate}, CStr({TEMP_PWC_Sales_Report_SP_MAIN.mtransferdate}, " ") -1)

I get error:
A number, currency amount, date, time, or date-time is required here

what I am trying to do:
|01/01/2012 12:01:01| = |01/01/2012|

Thanks
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

I am not sure if you can use Split method in CR but give it a try

Split(varname, " ")(0)
ASKER CERTIFIED SOLUTION
Avatar of Jared_S
Jared_S

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 Mike McCracken
Mike McCracken

You can use the Split function but it is

Split({YourFieldName}," ")[1]

mlmcc
Avatar of Amour22015

ASKER

Just what I am looking for, Thanks