SQL Server 2008 - convert varchar to datetime column -
i have table varchar column (dateandtime) date , time in format dd/mm/yyyy hh:mm:ss , need convert datetime column.
i have temp column dateandtimetemp in table .
thanks
try this:
select convert(datetime, '15/05/2013 13:55:12', 104) it should return : 2013-05-15 13:55:12.000
Comments
Post a Comment