Fuego.Lang : Month

The Month component is an Enumeration that defines the twelve months of the year (in a Gregorian calendar). This component is used with the Time component to specify a month of the year.

This component also calculates the number of days in a month and provides localized names for each month.

Example: Display number of days in current month

now = 'now'
currentMonthNumber = now.month
currentMonth = Month.valueOf(currentMonthNumber)
currentYear = now.year

display "Current month "+localizedName(currentMonth) +
         " has "+days(currentMonth, year : currentYear) + " days."
Related reference
Fuego.Lang : Day
Fuego.Lang : Week
Fuego.Lang : Time