方法一
private int WeekOfYear(string date)
{
DateTime curDay = Convert
int firstdayofweek = Convert
int days = curDay
int daysOutOneWeek = days
if (daysOutOneWeek <=
{
return
}
else
{
int weeks = daysOutOneWeek /
if (daysOutOneWeek %
weeks ++;
return weeks +
}
}
方法二
System
int weekOfYear = gc
From:http://tw.wingwit.com/Article/program/net/201311/12092.html