MonthOfYear

public class MonthOfYear

Constants to represent months of the year.

  • January.

    Declaration

    Swift

    public static let january: Int = (1 as Int)
  • February.

    Declaration

    Swift

    public static let february: Int = (2 as Int)
  • March.

    Declaration

    Swift

    public static let march: Int = (3 as Int)
  • April.

    Declaration

    Swift

    public static let april: Int = (4 as Int)
  • may

    May.

    Declaration

    Swift

    public static let may: Int = (5 as Int)
  • June.

    Declaration

    Swift

    public static let june: Int = (6 as Int)
  • July.

    Declaration

    Swift

    public static let july: Int = (7 as Int)
  • August.

    Declaration

    Swift

    public static let august: Int = (8 as Int)
  • September.

    Declaration

    Swift

    public static let september: Int = (9 as Int)
  • October.

    Declaration

    Swift

    public static let october: Int = (10 as Int)
  • November.

    Declaration

    Swift

    public static let november: Int = (11 as Int)
  • December.

    Declaration

    Swift

    public static let december: Int = (12 as Int)
  • Declaration

    Swift

    public static func name(month: Int) -> String

    Parameters

    month

    Month of year (January = 1 to December = 12).

    Return Value

    The English month name with starting capital letter.