I have a column called DT_APP
which contains dates in two formats
Sep 4 2012 6:19PM
2013-04-30 23:38.34
I need to convert 1) into 2) in the column but I need it to be in nvarchar(19)
as the data type is in nvarchar(19)
.
I appreciate it should be in Datetime
format but Its been set to nvarchar(19)
.
Thanks,
So, assuming that those are the only two formats of your column, then you can do the following:
UPDATED
Ok, if you want another column, then you can first create it and then fill the values:
After that, you can check the column to see if the values are correct and only then you should delete the
DT_APP
column.UPDATE 2 If you just need to update current values, then just do: