获得中文星期名称

 ///


        /// 获得中文星期名称
        ///

        ///
        public static string GetCnWeek()
        {
            switch (DateTime.Now.DayOfWeek)
            {
                case DayOfWeek.Monday:
                    return "星期一";
                case DayOfWeek.Tuesday:
                    return "星期二";
                case DayOfWeek.Wednesday:
                    return "星期三";
                case DayOfWeek.Thursday:
                    return "星期四";
                case DayOfWeek.Friday:
                    return "星期五";
                case DayOfWeek.Saturday:
                    return "星期六";
                case DayOfWeek.Sunday:
                    return "星期天";
                default:
                    return "";
            }
        }

 

我的方法,还有别的好的方法吗?望赐教。 :)

你可能感兴趣的:(经验点滴)