Cats.Helpers.EthiopianDate.ToLongDateString C# (CSharp) Method

ToLongDateString() public method

Toes the long date string.
public ToLongDateString ( ) : string
return string
        public string ToLongDateString()
        {
            string date = string.Format("{1} {0} - {2} ", Day, GetMonthName(), Year);
            return date;
        }

Usage Example

Example #1
0
 public static string ToCTSPreferedDateFormat(this DateTime date, string lang)
 {
     if (lang.ToLower() == "gc")
     {
         IFormatProvider provider = new CultureInfo("en-GB");
         return date.ToString("dd-MMM-yyyy", provider);
     }
     else
     {
         EthiopianDate ethiopianDate = new EthiopianDate(date);
         return ethiopianDate.ToLongDateString();
     }
 }
All Usage Examples Of Cats.Helpers.EthiopianDate::ToLongDateString