DayOfYearComponents

public struct DayOfYearComponents : Codable

An unlocalized gregorian date, scoped to a day, month, and year

Important

Date components are 1-indexed. For example, a DayOfYearComponents.month equal to 1 refers to January.
  • day

    The day of the month (1-31)

    Declaration

    Swift

    public let day: Int
  • The month of the year (1-12)

    Declaration

    Swift

    public let month: Int
  • The full year (ex. 2022)

    Declaration

    Swift

    public let year: Int