Title: CultureToArabic ,CultureToEnglish and ip address                                 If you need copy same format use firefox or chrome or safari but iexplorer not work


Preview of Code
protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                string ip = base.Request.ServerVariables.Get("Remote_ADDR").ToString();
                HtmlGenericControl expr_35 = this.ipaddress;
                expr_35.InnerHtml += ip;
                this.CultureToArabic();
                this.lbldateHijri0.Text = DateTime.Today.ToString("dd / MM / yyyy ") + "هـ";
                this.CultureToEnglish();
                this.lblenglishdate.Text = DateTime.Today.ToString("dd / MM / yyyy ") + "م";
                this.lbldayofweek.ForeColor = Color.Red;
                this.lbldayofweek.Text = this.GetTodayMiladiDate();
                this.CultureToArabic();
            }
        }
        public void CultureToArabic()
        {
            CultureInfo mycultureinfo = new CultureInfo("ar-SA");
            mycultureinfo.DateTimeFormat.Calendar = new UmAlQuraCalendar();
            Thread.CurrentThread.CurrentCulture = mycultureinfo;
        }
        public void CultureToEnglish()
        {
            CultureInfo mycultureinfo = new CultureInfo("en-US");
            mycultureinfo.DateTimeFormat.Calendar = new GregorianCalendar();
            Thread.CurrentThread.CurrentCulture = mycultureinfo;
        }
        public string GetTodayMiladiDate()
        {
            string todaydate = string.Empty;
            UmAlQuraCalendar hc = new UmAlQuraCalendar();
            string day = hc.GetDayOfWeek(DateTime.Now).ToString().ToLower().Trim();
            string text = day;
            switch (text)
            {
            case "friday":
                day = "الجمعة";
                break;
            case "saturday":
                day = "السبت";
                break;
            case "sunday":
                day = "الأحد";
                break;
            case "monday":
                day = "الإثنين";
                break;
            case "tuesday":
                day = "الثلاثاء";
                break;
            case "wednesday":
                day = "الأربعاء";
                break;
            case "thursday":
                day = "الخميس";
                break;
            }
            return day;
        }