/// 獲得當周起始日期 賈世義
/// </summary>
/// <param name=
/// <param name=
/// <returns></returns>
public static DateTime GetWeekStart(DateTime startDate
{
int day = (int)startDate
if (day > weekStart)
{
return startDate
}
else if (day < weekStart)
{
return startDate
}
else
{
return startDate;
}
}
From:http://tw.wingwit.com/Article/program/net/201311/12269.html