I am working with a string column that holds date values (I didn't design it, but I do have to work with it). There are about 2500 records.
Most of the date values are entered in MM/DD/YYYY format (with preceding '0's), but there are some rogue records that are in MM/DD/YY format, or others that don't have preceding '0's.
Example of source data:
05/20/2012
05/20/2012
5/29/2011
5/6/2015
5/1/10
I need to return a distinct list of values, all formatted the same way (MM/DD/YYYY), in order.
05/01/2010
05/29/2011
05/20/2012
05/06/2015
Given the lack of consistency in how these values were entered, I'm not sure how to accomplish the goal?
5/1/10no one can say which value is a year, a month or a day. I guess that there also could be dates like10/11/12in this table - it's guessing game, you need some additional criteria to decide which format has to be used in this case. Also a date like10/12/2015- please tell mi which value is a month and which one is a day ?