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.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Date type displaying weekday

Author  Topic 

VeselaApo
Posting Yak Master

114 Posts

Posted - 2010-11-04 : 13:45:16
Hi,

Is there any date type i can use that will diplay the weekday (ex: monday, tuesday, etc.) on any date i have in a database?

I use Microsoft SQL server management studio 2005.

thanks!

robvolk
Most Valuable Yak

15732 Posts

Posted - 2010-11-04 : 13:49:46
SELECT DateName(dw, DateColumn) FROM myTable
Go to Top of Page

VeselaApo
Posting Yak Master

114 Posts

Posted - 2010-11-04 : 13:58:06
Thanks!!
Go to Top of Page
   

- Advertisement -