标签:new for arw static calendar 调用 public time inf
public static int WeekOfYear(DateTime dt, CultureInfo ci)
{
return ci.Calendar.GetWeekOfYear(dt, ci.DateTimeFormat.CalendarWeekRule, ci.DateTimeFormat.FirstDayOfWeek);
}
调用:
//weekOfYear 第几周
int weekOfYear = WeekOfYear(dt_begin, new CultureInfo("zh-CN"));
标签:new for arw static calendar 调用 public time inf
原文地址:http://www.cnblogs.com/hqyj/p/7153646.html