DayOfWeek

public class DayOfWeek

Constants to represent days of the week (Monday = 1 to Sunday = 7, using ISO 8601 conventions).

  • Monday.

    Declaration

    Swift

    public static let monday: Int
  • Tuesday.

    Declaration

    Swift

    public static let tuesday: Int
  • Wednesday.

    Declaration

    Swift

    public static let wednesday: Int
  • Thursday.

    Declaration

    Swift

    public static let thursday: Int
  • Friday.

    Declaration

    Swift

    public static let friday: Int
  • Saturday.

    Declaration

    Swift

    public static let saturday: Int
  • Sunday.

    Declaration

    Swift

    public static let sunday: Int
  • Declaration

    Swift

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

    Parameters

    day

    Day of week (Monday = 1 to Sunday = 7).

    Return Value

    The English day name with starting capital letter.

  • Declaration

    Swift

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

    Parameters

    day

    Day of week (Monday = 1 to Sunday = 7).

    Return Value

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