Extension Method From The Trenches – C# Week Of Year

added by daniewat82
5/27/2010 6:04:13 PM

1 Kicks, 65 Views

I discovered there was no easy way to get the week number from a DateTime (I really expected there to be a WeekOfYear property on DateTime but there is not. Luckily it is a pretty easy to work this information out.