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
 Development Tools
 Other Development Tools
 Work week format

Author  Topic 

lsy
Yak Posting Veteran

57 Posts

Posted - 2006-10-17 : 05:08:04
How to convert a date into work week?? do there have any website to recommend?? some it count 3 days it consider a week but some 1 day also consider a week. so do there have any method to differentiate it??

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-10-17 : 05:14:46
It depends on individual organization. What is your organizaiton's definition ?


KH

Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2006-10-17 : 05:17:48
so can i have a list all? so that next time when the defination is different i know what method to use!!
thanks!!
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-17 : 05:26:51
There is a definition for ISO week numbering in BOOKS ONLINE.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2006-10-17 : 05:32:22
how it differenciate in sql statement?? how i query the date as work week?? i know there got a syntax is format(date, 'ww',1,2) this will return as 3 days as a week...
but i not really remember what the 1 and 2 meaning... anyone can help?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-17 : 05:35:11
Which tool are you using?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2006-10-17 : 05:37:09
MS Access
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-17 : 05:38:33
What does the help file tell you?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2006-10-17 : 05:55:46
this syntax is previous i get from a website... but now i can't find it... if now if i want 1 day also consider a week... how should i write it??
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-17 : 06:15:26
Press F1 key.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

lsy
Yak Posting Veteran

57 Posts

Posted - 2006-10-17 : 23:44:02
In help file it just provide 1 function only... which is FORMAT(mydate, "ww") it return although one day also consider a week...
Example: 1/1/2005 some calender consider ww52 on 2004 some consider ww01 on 2004
For that function it will return ww52 for 1/1/2005
so any idea for the other result??
Go to Top of Page
   

- Advertisement -