June 23, 2009 at 9:53 pm
Hi Folks,
How do I format dates to display as Sunday, 19th April for any given date?
Thanks.
June 24, 2009 at 7:47 am
Use string manipulation and the built-in date functions
e.g.
SELECT DATENAME(weekday,(GetDate())) + ', ' +
CONVERT(varchar, GETDATE(), 109)
SEE CONVERT in BOL for a full list of date conversion options.
June 24, 2009 at 7:57 am
Formatting is a front-end/middle-tier responsibility, why are you doing it in a RDMS where it is slower?
June 24, 2009 at 8:20 am
sqlguru (6/24/2009)
Formatting is a front-end/middle-tier responsibility, why are you doing it in a RDMS where it is slower?
Perhaps because he was told to?
Just sayin'.
😀
Paul White
SQLPerformance.com
SQLkiwi blog
@SQL_Kiwi
June 24, 2009 at 7:52 pm
Thanks 🙂
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply