I have a table CUSTOMERS (ID,NAME,REGISTRATION_DT). It has following values -
1,Alex,093013
2,Peter,012512
3,Mary,041911
.
.
.
I want to be able to select REGISTRATION_DT column and have the values retun as DATETIME. Is there any query to convert the existing varchar datatype in REGISTRATION_DT column to datetime and have all values in datetime format? The existing varchar values are in ddmmyy format.
I am using sql-server 2008