Argentini.Halide.H3Temporal.GetMonthName C# (CSharp) Method

GetMonthName() public static method

Get the month name by its number.
public static GetMonthName ( Int32 monthNumber, System.Boolean returnAbbreviation ) : String
monthNumber System.Int32 Month number for which a name is requested (1 to 12).
returnAbbreviation System.Boolean Set to "true" to return month names abbreviation (e.g. Dec).
return String
        public static String GetMonthName(Int32 monthNumber, Boolean returnAbbreviation)
        {
            String monthName = "";

            if (monthNumber > 0 && monthNumber < 13)
            {
                if (returnAbbreviation)
                {
                    monthName = H3Temporal.DateFormat(monthNumber + "/1/2009", DateFormats.MonthShort);
                }

                else
                {
                    monthName = H3Temporal.DateFormat(monthNumber + "/1/2009", DateFormats.Month);
                }
            }

            return monthName;
        }

Same methods

H3Temporal::GetMonthName ( String monthNumber, System.Boolean returnAbbreviation ) : String