Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi there,How can I convert 2007-03-30 14:46:56.783 to 03/30/2007 14:46:56 PMand similarly 2007-03-30 10:46:56.783 to 03/30/2007 10:46:56 AM ?I know that best solution is to convert at the front end but for some reason I need to do it in sql.Thanks for the help.
Thanks for your reply Lamprey.Using your query I get 03/30/2007 14:46:56:783 PMbut what I need is 03/30/2007 14:46:56 PMThanks.
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts
Posted - 2009-04-30 : 16:53:02
quote:Originally posted by ssunny Thanks for your reply Lamprey.Using your query I get 03/30/2007 14:46:56:783 PMbut what I need is 03/30/2007 14:46:56 PMThanks.