1 //获取今天是星期几 2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; 3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToString(); 4 this.LbWeekday.Content = week;
标签:col c# pre [] 今天 div this bsp gpo
1 //获取今天是星期几 2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; 3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToString(); 4 this.LbWeekday.Content = week;
标签:col c# pre [] 今天 div this bsp gpo
原文地址:https://www.cnblogs.com/dotnetHui/p/8533677.html