Hi guys,
I'm relatively new to Crystal Reports and have spent the last wee while searching through the web for help converting strings to dates. I'm using CR 8.5.
The dates look like this: "2003-07-11 09:22:00" [they are of the string type]. Other entries for the the column are "N/A".
Basically I imagine an If-Then-Else of the type:
If column looks like this "2003-07-11 09:22:00"
then convert it to DateTime type,
Else leave it as "N/A"
I can't get the If-Then-Else loop to work. Additionally where should I place the formula? The data for the report is pulled from an MS SQL Server stored procedure.
I would appreciate any help on this you can give. If this is a common problem can you point me to previous posts that are appropraite [I couldn't find anything when I searched].
I'm relatively new to Crystal Reports and have spent the last wee while searching through the web for help converting strings to dates. I'm using CR 8.5.
The dates look like this: "2003-07-11 09:22:00" [they are of the string type]. Other entries for the the column are "N/A".
Basically I imagine an If-Then-Else of the type:
If column looks like this "2003-07-11 09:22:00"
then convert it to DateTime type,
Else leave it as "N/A"
I can't get the If-Then-Else loop to work. Additionally where should I place the formula? The data for the report is pulled from an MS SQL Server stored procedure.
I would appreciate any help on this you can give. If this is a common problem can you point me to previous posts that are appropraite [I couldn't find anything when I searched].