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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -