I have a column which stores date in String format like (11/01/2010,2014-04-08,14-Oct-14).
I want to convert all this type of string dates in datetime/date format like (Dec 16 2014 3:40PM)
I am trying like that
update #test set new_CHQ_DATE = CONVERT(varchar(20), CHQ_DATE, 105) where CHQ_DATE like '__/__/____'
update #test set new_CHQ_DATE = CONVERT(varchar(20), CHQ_DATE, 105) where CHQ_DATE like '____-__-__'
update #test set new_CHQ_DATE = CONVERT(varchar(20), CHQ_DATE, 105) where CHQ_DATE like '__-___-__'
Bu
DATEtype. For one thing, your chosen format doesn't sort nicely, so it'd be useless to add that column to an index.