Ejemplo n.º 1
0
        /// <summary>
        /// Gete month name by number.
        /// </summary>
        /// <param name="month">Month number.</param>
        /// <returns>Month name.</returns>
        public static string GetMonthName(int month)
        {
            if (month > 0 && month < 13)
            {
                var cultureInfo = CrossLocalization.GetCurrentCultureInfo();
                return(cultureInfo.DateTimeFormat.GetMonthName(month)
                       ?.FirstCharToUpper());
            }

            return(string.Empty);
        }