Date

public struct Date : Codable, Equatable, FunctionResult

Represents a date according to the Gregorian calendar

  • day

    Day of the month, 1-31

    Declaration

    Swift

    public let day: Int32
  • Month, 1-12

    Declaration

    Swift

    public let month: Int32
  • Year, 1-9999

    Declaration

    Swift

    public let year: Int32
  • Represents a date according to the Gregorian calendar

    Declaration

    Swift

    public init(day: Int32, month: Int32, year: Int32)

    Parameters

    day

    Day of the month, 1-31

    month

    Month, 1-12

    year

    Year, 1-9999