I have a datetime field which has a value like this 5/11/2010 12:04:20 PM …. I am converting this field convert(varchar, dbo.Clients.CreatedDate,103) as CreatedDate and i get the result as 11/5/2010….. But how to get 11/5/2010 12:04 PM…..
I have a datetime field which has a value like this 5/11/2010 12:04:20 PM
Share
You can use a different formatting style to include the time component.
For example:
All styles are documented here:
http://msdn.microsoft.com/en-us/library/ms187928.aspx