protected virtual DateTimeFormatInfo GetDateTimeFormatter() { if (DefaultCulture.Equals(FALocalizeManager.Instance.FarsiCulture)) { return(persianCulture.DateTimeFormat); } return(DefaultCulture.DateTimeFormat); }
/// <summary> /// Returns the name of the specified month. /// </summary> /// <param name="month"></param> /// <returns></returns> protected internal string GetMonthName(int month) { if (DefaultCulture.Equals(FALocalizeManager.Instance.FarsiCulture)) { return(PersianDateTimeFormatInfo.MonthGenitiveNames[month - 1]); } return(DefaultCulture.DateTimeFormat.MonthGenitiveNames[month - 1].ToUpper()); }
protected virtual Calendar GetDefaultCalendar() { if (customCalendar != null) { return(customCalendar); } if (DefaultCulture.Equals(FALocalizeManager.Instance.FarsiCulture)) { return(pc); } if (DefaultCulture.Equals(FALocalizeManager.Instance.ArabicCulture)) { return(hc); } return(gc); }
private System.Globalization.Calendar GetDefaultCalendar() { if (customCalendar != null) { return(customCalendar); } if (DefaultCulture.Equals(FALocalizeManager.Instance.FarsiCulture)) { return(pc); } if (DefaultCulture.Equals(FALocalizeManager.Instance.ArabicCulture)) { return(hc); } return(gc); }