nandish7
Valued Member
Points: 58
More actions
May 12, 2010 at 8:48 am
#138923
select getdate() returns the result in the format
5/12/2010 9:43:20 Am
but i want it to return the format
2010-05-12 10:47:36.097
Any ideas how to go about doing this?
J-F Bergeron
SSCrazy Eights
Points: 8593
May 12, 2010 at 8:50 am
#1166281
Lookup "Convert" in Books online, you have plenty formats to use for a date.
Cheers,
J-F
Dave Ballantyne
SSC-Dedicated
Points: 33667
May 12, 2010 at 9:07 am
#1166299
datetimes are NOT stored in any particular format.
See this link for all that you will ever need to know about dates.
http://www.karaszi.com/SQLServer/info_datetime.asp
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply