I want to convert the date format from 06/10/2014 5:33:32 PM to 2014-10-06 17:28:44.000 format
guide me Please ...
QUERY
select CONVERT(VARCHAR(22),'06/10/2014 5:33:32 PM', 120)
RESULT
06/10/2014 5:33:32 PM
I want to convert the date format from 06/10/2014 5:33:32 PM to 2014-10-06 17:28:44.000 format
guide me Please ...
QUERY
select CONVERT(VARCHAR(22),'06/10/2014 5:33:32 PM', 120)
RESULT
06/10/2014 5:33:32 PM
The below sql query will work :
select CONVERT(datetime,'06/10/2014 5:33:32 PM', 101)
As per @Damien_The_Unbeliever comments, If OP treats 06 as day and 10 as month
select CONVERT(datetime,'06/10/2014 5:33:32 PM', 103)