StringToDate() Mixed data single digit and double digits
Posted: Tue Nov 03, 2015 2:48 pm
Hi
Does anyone know if there's a format mask that can handle mix digit lengths for the format mask of StringToDate() function? Example data:
My the string dates are consistent and this format mask in a transformer isn't working for me:
And I've also tried:
But if change my data to always be 2 digits for month and day, then things work fine. I didn't see any format mask options on the IBM website but maybe I missed something.
Does anyone know if there's a format mask that can handle mix digit lengths for the format mask of StringToDate() function? Example data:
Code: Select all
1/1/2015
02/02/2015
11/15/2015
Code: Select all
StringToDate(DSLink1.DOB,"%mm/%dd/%yyyy")
Code: Select all
StringToDate(DSLink1.DOB,"%m/%dd/%yyyy")