public static string DayWeek(string dDAte, int tYpe)
        {
            DateTime datDate = new DateTime(int.Parse(dDAte.Substring(0, 4)),
                int.Parse(dDAte.Substring(4, 2)),
                int.Parse(dDAte.Substring(6, 2)));

            int intDay = int.Parse(datDate.DayOfWeek.ToString("d"));


            if (tYpe== 1)
            {
                switch (intDay)
                {
                    case 0: return "일";
                    case 1: return "월";
                    case 2: return "화";
                    case 3: return "수";
                    case 4: return "목";
                    case 5: return "금";
                    case 6: return "토";
                    case 7: return "일";
                    default: return " ";
                }
            }
            else
            {
                switch (intDay)
                {
                    case 0: return "SUN";
                    case 1: return "MON";
                    case 2: return "TUE";
                    case 3: return "WED";
                    case 4: return "THU";
                    case 5: return "FRI";
                    case 6: return "SAT";
                    case 7: return "SUN";
                    default: return " ";
                }
            }
        }

이올린에 북마크하기(0) 이올린에 추천하기(0)


Posted by rails.
TAGS

Leave your greetings here.

« Previous : 1 : 2 : 3 : 4 : 5 : ... 240 : Next »