Log in


Get a week number in .NET - Russian-speaking EPAM community

About Get a week number in .NET

Previous Entry Get a week number in .NET Dec. 25th, 2003 @ 04:54 pm Next Entry
GregorianCalendar gCalendar = new GregorianCalendar();
int WeekNumber = gCalendar.GetWeekOfYear( DateTime.Now, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday );

Parameters: today, first week must have 4 days, and the week starts on Monday
Current Mood: tiredtired
Current Music: [Happy Rhodes] - To the funny farm
Leave a comment
Top of Page Powered by LiveJournal.com