C#获取日期是周几
作者:朱尚 / 日期:2015-05-25 / 分类:C# / 浏览:1586
string dt = DateTime.Today.DayOfWeek.ToString();
        switch (dt)
        {
            case "Monday":
                week = "星期一";
                break;
            case "Tuesday":
                week = "星期二";
                break;
            case "Wednesday":
                week = "星期三";
                break;
            case "Thursday":
                week = "星期四";
                break;
            case "Friday":
                week = "星期五";
                break;
            case "Saturday":
                week = "星期六";
                break;
            case "Sunday":
                week = "星期日";
                break;
        }


上一篇:C#转换月份为英文
下一篇:DateTime.Parse 转换日期格式,24小时制
本文标签: 获取星期几
本文链接:http://www.banzhuan.net/detail/270