Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: find week num of first week in year Pin
dan!sh 7-Jan-10 4:21
professional dan!sh 7-Jan-10 4:21 
GeneralRe: find week num of first week in year Pin
Maddie from Dartford7-Jan-10 4:30
Maddie from Dartford7-Jan-10 4:30 
GeneralRe: find week num of first week in year Pin
dan!sh 7-Jan-10 4:36
professional dan!sh 7-Jan-10 4:36 
GeneralRe: find week num of first week in year Pin
Maddie from Dartford7-Jan-10 4:47
Maddie from Dartford7-Jan-10 4:47 
GeneralRe: find week num of first week in year Pin
dan!sh 7-Jan-10 4:53
professional dan!sh 7-Jan-10 4:53 
GeneralRe: find week num of first week in year [modified] Pin
dojohansen8-Jan-10 1:15
dojohansen8-Jan-10 1:15 
GeneralRe: find week num of first week in year Pin
OriginalGriff7-Jan-10 8:32
mveOriginalGriff7-Jan-10 8:32 
GeneralRe: find week num of first week in year Pin
dojohansen8-Jan-10 1:21
dojohansen8-Jan-10 1:21 
Yes, but since weeks have 7 days and 52*7 = 364 and a (leap) year has 365 (366) days, this means the first day of the year can be week 1, week 52, or week 53. For example, if a year starts on a Friday, there are only three days belonging to that week in the new year. Thus week 1 might start on the fourth day of the year, in which case we'd still not be finished with week 52 on December 31st. The only times you get to week 53 is thus - if the week start on Monday - when a year starts on Monday, or on a Tuesday AND it is a leap year.

For example, in a non-leap year that starts on Monday after 364 days or 52 full weeks it'll be Monday again but with one day to go; this will be Monday December 31st of whatever year it is, and the first day of week 53. The next day would then be January 1st, and since it's a Tuesday it clearly belongs to the same week as the Monday, since your weeks (as do mine) start on Monday.
AnswerRe: find week num of first week in year Pin
Richard MacCutchan7-Jan-10 4:44
mveRichard MacCutchan7-Jan-10 4:44 
GeneralRe: find week num of first week in year Pin
Maddie from Dartford7-Jan-10 4:59
Maddie from Dartford7-Jan-10 4:59 
GeneralRe: find week num of first week in year Pin
Richard MacCutchan7-Jan-10 5:42
mveRichard MacCutchan7-Jan-10 5:42 
GeneralRe: find week num of first week in year Pin
Maddie from Dartford7-Jan-10 6:03
Maddie from Dartford7-Jan-10 6:03 
JokeRe: find week num of first week in year Pin
dojohansen8-Jan-10 1:27
dojohansen8-Jan-10 1:27 
GeneralRe: find week num of first week in year Pin
Richard MacCutchan8-Jan-10 4:29
mveRichard MacCutchan8-Jan-10 4:29 
QuestionDataGridView, DataSource and RowCount related query Pin
dan!sh 7-Jan-10 4:09
professional dan!sh 7-Jan-10 4:09 
AnswerRe: DataGridView, DataSource and RowCount related query Pin
Ben Fair7-Jan-10 4:52
Ben Fair7-Jan-10 4:52 
GeneralRe: DataGridView, DataSource and RowCount related query Pin
dan!sh 7-Jan-10 4:56
professional dan!sh 7-Jan-10 4:56 
QuestionCreate object explorer,query analyser and registered services windows Pin
tasumisra7-Jan-10 3:43
tasumisra7-Jan-10 3:43 
QuestionC# DataTable Pin
jojoba20107-Jan-10 3:18
jojoba20107-Jan-10 3:18 
AnswerRe: C# DataTable Pin
mrcooll7-Jan-10 4:50
mrcooll7-Jan-10 4:50 
AnswerRe: C# DataTable Pin
loyal ginger7-Jan-10 4:52
loyal ginger7-Jan-10 4:52 
GeneralRe: C# DataTable Pin
OriginalGriff7-Jan-10 5:23
mveOriginalGriff7-Jan-10 5:23 
AnswerRe: C# DataTable Pin
OriginalGriff7-Jan-10 5:19
mveOriginalGriff7-Jan-10 5:19 
QuestionCsharp .Net doubt [modified] Pin
djsproject7-Jan-10 2:59
djsproject7-Jan-10 2:59 
AnswerRe: Csharp .Net doubt Pin
Ben Fair7-Jan-10 3:03
Ben Fair7-Jan-10 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.