Hello,
I'm not sure what the best way to go about doing this would be, so I was hopinh for some suggestions of syntax I could use to get the correct date. I have a date column with five digit numbers, the two last numbers represent the month, and the first three numbers represent the year, except they're missing a "0" after the first number, and all of the dates in the field are in the first day of that month.
For example, in the table I have: 21201
-Last two #'s are the month: 01 (January)
-First three are the year (w/ "0" missing after the first number): 212 (2012)
-The day is just the 1st.
Another example would be: 21112 (December 01, 2011)
I need to convert these numbers to their proper date because I'm using them in a nested query to compared to another table that actually has correct dates in it.
Any ideas?
Thanks!
I'm not sure what the best way to go about doing this would be, so I was hopinh for some suggestions of syntax I could use to get the correct date. I have a date column with five digit numbers, the two last numbers represent the month, and the first three numbers represent the year, except they're missing a "0" after the first number, and all of the dates in the field are in the first day of that month.
For example, in the table I have: 21201
-Last two #'s are the month: 01 (January)
-First three are the year (w/ "0" missing after the first number): 212 (2012)
-The day is just the 1st.
Another example would be: 21112 (December 01, 2011)
I need to convert these numbers to their proper date because I'm using them in a nested query to compared to another table that actually has correct dates in it.
Any ideas?
Thanks!