469,167 Members | 1,154 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,167 developers. It's quick & easy.

Format Date into Day Name i.e. Mon, Tue, Wed etc...

Is there a conversion for a date field in SQL to show the day of the
week that day is ? I've looked in help with no luck. I know in excel
for example you can create custom format for a date to 'dddd' and it
displays the Monday, Tuesday etc... Even it the Day number was
returned i.e if Monday = 1 then 1, 2, 3, 4, 5, 6, 7 instead of day
names.

Philippa
Jul 20 '05 #1
2 34063
SELECT DATENAME(DW,datetimecol)
FROM Sometable

--
David Portas
------------
Please reply only to the newsgroup
--

"Philippa" <ph*************@systemc.com> wrote in message
news:9c**************************@posting.google.c om...
Is there a conversion for a date field in SQL to show the day of the
week that day is ? I've looked in help with no luck. I know in excel
for example you can create custom format for a date to 'dddd' and it
displays the Monday, Tuesday etc... Even it the Day number was
returned i.e if Monday = 1 then 1, 2, 3, 4, 5, 6, 7 instead of day
names.

Philippa

Jul 20 '05 #2
Thank you, this works like a dream

"David Portas" <RE****************************@acm.org> wrote in message news:<7O********************@giganews.com>...
SELECT DATENAME(DW,datetimecol)
FROM Sometable

--
David Portas
------------
Please reply only to the newsgroup
--

"Philippa" <ph*************@systemc.com> wrote in message
news:9c**************************@posting.google.c om...
Is there a conversion for a date field in SQL to show the day of the
week that day is ? I've looked in help with no luck. I know in excel
for example you can create custom format for a date to 'dddd' and it
displays the Monday, Tuesday etc... Even it the Day number was
returned i.e if Monday = 1 then 1, 2, 3, 4, 5, 6, 7 instead of day
names.

Philippa

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by praba kar | last post: by
4 posts views Thread by peashoe | last post: by
reply views Thread by lsy | last post: by
1 post views Thread by Keith Chadwick | last post: by
2 posts views Thread by fniles | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.