Date conversion from String
Posted: Thu Oct 22, 2015 8:15 am
Hello All,
I have a simple operation where I am converting a 8 digit varchar string into date and then validating if the date is a valid date.
So the job is dataset->transformer->dataset
The issue ; One of the input string is '09001972' (MMDDYYYY Format) , so when I first convert into date it throws the warning
"Conversion error calling conversion routine date_from_string data may have been lost"
Obviously , my next step is to validate the date and if its not valid convert it into some default .
However , The string to date conversion itself throws a warning as the date itself is invalid (but a valid string)
I am trying to get rid of this warning , but I guess I am missing something here
Appreciate your inputs on this
Thanks for looking
I have a simple operation where I am converting a 8 digit varchar string into date and then validating if the date is a valid date.
So the job is dataset->transformer->dataset
The issue ; One of the input string is '09001972' (MMDDYYYY Format) , so when I first convert into date it throws the warning
"Conversion error calling conversion routine date_from_string data may have been lost"
Obviously , my next step is to validate the date and if its not valid convert it into some default .
However , The string to date conversion itself throws a warning as the date itself is invalid (but a valid string)
I am trying to get rid of this warning , but I guess I am missing something here
Appreciate your inputs on this
Thanks for looking