asp.net 返回当前日期

View Code
1 public static string WeekDay()
2 {
3 string[] weekday = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
4 string week = weekday[Convert.ToInt32(DateTime.Now.DayOfWeek)];
5 return week;
6 }
posted @ 2011-07-06 14:11  Jack Qin  阅读(179)  评论(0编辑  收藏  举报
作者:Jack Qin http://www.nosqlcn.com