View Code
1 public static string WeekDay()
2 {
3 string[] weekday = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
4 string week = weekday[Convert.ToInt32(DateTime.Now.DayOfWeek)];
5 return week;
6 }