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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 datepart for work week

Author  Topic 

lsy
Yak Posting Veteran

57 Posts

Posted - 2010-08-19 : 21:51:25
is sql server have something equivalent to datepart('ww', [mydate],1,2)???

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-08-19 : 21:57:36
nope. What is your definition of work week ? example ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2010-08-19 : 22:14:18
i understand there are few types of workweek type. i would like to know how to configure all of that. how can i get all this in sqlserver?
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-08-19 : 22:22:12
There isn't one in SQL Server. There are ways to calculate that. But best is to have your own calendar table and defines the work week there.


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -