C#实现的根据年月日计算星期几的函数

string CaculateWeekDay(int y,int m, int d)

CaculateWeekDay
{
string weekstr="";
DateTime theDate = new DateTime(y,m,d);
weekstr=theDate.DayOfWeek;

return weekstr;

}

posted on 2005-03-22 16:15  .Dove  阅读(389)  评论(0编辑  收藏  举报

导航