Custom Function: Get Nth month name

This function is a quick way to get the Nth month of the year from an integer value of 1 - 12. For example, MonthName(1) returns "January". The month name is based on the language file.

Note: To get the month name of a date value, use MonthName(Month(Date))

Arguments (Min - Max): 1 - 1



  • x is an integer value from 1 to 12


int month = Convert.ToInt32(args[0]);

if (month < 1 || month > 12) // gracefully handle invalid args
  return null;

return sessionInfo.PageInfo.LanguageDict.GetInfo("CalendarMonth" + month).Html;

Hidden Article Information

Article Author
Exago Development
created 2017-01-17 16:31:57 UTC
updated 2017-06-20 14:55:56 UTC

functions, MonthName, example, custom function,
Have more questions? Submit a request