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 Programming
 return dat in string

Author  Topic 

nehj76
Starting Member

15 Posts

Posted - 2007-07-25 : 17:01:58
hi! how would i return the current day in string format?

the output should be sun,mon,tue,wed,thu.. etc?

pls. help.. thanks

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-07-25 : 17:03:52
select datename(dw, getdate())


Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

nehj76
Starting Member

15 Posts

Posted - 2007-07-25 : 17:39:26
thanks.. i know this is simple but im new to sql server.. ;-)
Go to Top of Page

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-07-25 : 17:45:32
Well.. searching in books on line also helps

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page
   

- Advertisement -