1 //获取今天是星期几 2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; 3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToString(); 4 this.LbWeekday.Content = week;
原文地址:https://www.cnblogs.com/dotnetHui/p/8533677.html
时间: 2024-11-09 10:24:55