public
static
class
DateTimeExtensions
{
public
static
int
WeekNumber(
this
System.DateTime value)
{
return
CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(value, CalendarWeekRule.FirstFourDayWeek,
DayOfWeek.Monday);
}
}
No comments:
Post a Comment