MonthOfYear

public class MonthOfYear

Constants to represent months of the year.

  • January.

    Declaration

    Swift

    public static let january: Int
  • February.

    Declaration

    Swift

    public static let february: Int
  • March.

    Declaration

    Swift

    public static let march: Int
  • April.

    Declaration

    Swift

    public static let april: Int
  • may

    May.

    Declaration

    Swift

    public static let may: Int
  • June.

    Declaration

    Swift

    public static let june: Int
  • July.

    Declaration

    Swift

    public static let july: Int
  • August.

    Declaration

    Swift

    public static let august: Int
  • September.

    Declaration

    Swift

    public static let september: Int
  • October.

    Declaration

    Swift

    public static let october: Int
  • November.

    Declaration

    Swift

    public static let november: Int
  • December.

    Declaration

    Swift

    public static let december: 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.

  • Declaration

    Swift

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

    Parameters

    month

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

    Return Value

    The English month name (3 character abbreviation) with starting capital letter.