jhowardcarter
MIS
Hi,
I'm trying to convert a string to a date. The string is in the format of "200809092. I'm using the formula of
Function (stringvar apex_date);
cdate(apex_date[7 to 8] &"/" &
apex_date [5 to 6]&"/" &
apex_date [1 to 4])
There are no conditions for the user when entering the string. When the reports comes acorss an invalid string eg "20080932", it fails. How can I add a condition to check the string prior to converting to a date?
Thanks, in advance.
JC
I'm trying to convert a string to a date. The string is in the format of "200809092. I'm using the formula of
Function (stringvar apex_date);
cdate(apex_date[7 to 8] &"/" &
apex_date [5 to 6]&"/" &
apex_date [1 to 4])
There are no conditions for the user when entering the string. When the reports comes acorss an invalid string eg "20080932", it fails. How can I add a condition to check the string prior to converting to a date?
Thanks, in advance.
JC