Hi all,
I need to parse a char(97) string using substring and convert it into a date. The following substring is either in 'yyyymmdd' format or a null.
SUBSTRING(@data_string, 54, 8)
I tried CAST to convert it to a date. But it said "Syntax error converting datetime from character string".
Please help. Thanks!
mariayx
I need to parse a char(97) string using substring and convert it into a date. The following substring is either in 'yyyymmdd' format or a null.
SUBSTRING(@data_string, 54, 8)
I tried CAST to convert it to a date. But it said "Syntax error converting datetime from character string".
Please help. Thanks!
mariayx