asp.net 返回当前日期

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

转载于:https://www.cnblogs.com/JackQ/archive/2011/07/06/2099185.html

你可能感兴趣的:(asp.net 返回当前日期)