C# 获取今天是星期几
2021-02-10 03:16
阅读:684
标签:col c# pre [] 今天 div this bsp gpo C# 获取今天是星期几 标签:col c# pre [] 今天 div this bsp gpo 原文地址:https://www.cnblogs.com/dotnetHui/p/8533677.html
1 //获取今天是星期几
2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToString();
4 this.LbWeekday.Content = week;
评论
亲,登录后才可以留言!