    struct LocalDate

    extension LocalDate : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Comparable, Copyable, Copyable, Decodable, Encodable, Equatable, Equatable, Equatable, Escapable, Escapable, Hashable, Hashable, Sendable, Sendable, SendableMetatype, SendableMetatype

Represents a date.

This struct doesn't include any time zone related information.
- `


  ### [year](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV4years5Int32Vvp)


  ` The year of the date.

  #### Declaration

  Swift

      let year: Int32

- `


  ### [month](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV5monthAC5MonthOvp)


  ` The month of the date.

  #### Declaration

  Swift

      let month: LocalDate.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate/Month.html

- `


  ### [day](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV3days5Int32Vvp)


  ` The day of the date.

  #### Declaration

  Swift

      let day: Int32

- `


  ### [init(year:month:day:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV4year5month3dayACs5Int32V_AC5MonthOAHtcfc)


  ` Initializes the local date with the year, month, day.

  #### Declaration

  Swift

      init(year: Int32, month: LocalDate.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate/Month.html, day: Int32)

  #### Parameters

  |---|---|
  | ` year ` | The year of the date. |
  | ` month ` | The month of the date. |
  | ` day ` | The day of the date. |

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV7decoderAcA12TraitDecoderV_tKcfc)


  ` Initializes `LocalDate` with the trait decoder.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The trait decoder to decode the local date. |

- `


  ### [Month](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate/Month.html)


  ` The month enum, representing the month of the year.

  #### Declaration

  Swift

      enum Month

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html.Month : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Copyable, Decodable, Encodable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum.html, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum8.html, Equatable, Equatable, Escapable, Hashable, Hashable, RawRepresentable, Sendable, Sendable, SendableMetatype, SendableMetatype

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV6encode4withyAA12TraitEncoderC_tKF)


  ` Encodes `LocalDate` to the trait encoder.

  #### Declaration

  Swift

      func encode(with encoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html) throws

- `


  ### [monthDay](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV8monthDayAA05MonthG0Vvp)


  ` The Month and day components of the date.

  #### Declaration

  Swift

      var monthDay: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/MonthDay.html { get }

- `


  ### [yearMonth](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV9yearMonthAA04YearG0Vvp)


  ` The year and month components of the date.

  #### Declaration

  Swift

      var yearMonth: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/YearMonth.html { get }

- `


  ### [init(dateComponents:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV14dateComponentsAC10Foundation0eG0V_tKcfc)


  ` Initializes a `LocalDate` by converting the given `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV14dateComponents10Foundation0eG0Vvp`.
  Throws
  when `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV14dateComponents10Foundation0eG0Vvp` have at least a `nil` `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV4years5Int32Vvp`, `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV5monthAC5MonthOvp` or `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV3days5Int32Vvp`, or if they are not valid in the Gregorian calendar.

  #### Declaration

  Swift

      init(dateComponents: DateComponents) throws

  #### Parameters

  |---|---|
  | ` dateComponents ` | The date components with the `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV4years5Int32Vvp`, `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV5monthAC5MonthOvp` and `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate.html#/s:13GoogleHomeSDK9LocalDateV3days5Int32Vvp` to use. |

- `


  ### [dateComponents](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV14dateComponents10Foundation0eG0Vvp)


  ` The `DateComponents` representation of this date.

  #### Declaration

  Swift

      var dateComponents: DateComponents { get }

- `


  ### [\<(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV1loiySbAC_ACtFZ)


  ` Returns a Boolean value indicating whether the value of the first
  argument is less than that of the second argument.

  This function is the only requirement of the `Comparable` protocol. The
  remainder of the relational operator functions are implemented by the
  standard library for any type that conforms to `Comparable`.

  #### Declaration

  Swift

      static func < (lhs: LocalDate, rhs: LocalDate) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [==(_:_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV2eeoiySbAC_ACtFZ)


  ` Returns a Boolean value indicating whether two values are equal.

  Equality is the inverse of inequality. For any values `a` and `b`,
  `a == b` implies that `a != b` is `false`.

  #### Declaration

  Swift

      static func == (lhs: LocalDate, rhs: LocalDate) -> Bool

  #### Parameters

  |---|---|
  | ` lhs ` | A value to compare. |
  | ` rhs ` | Another value to compare. |

- `


  ### [init(from:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/LocalDate#/s:13GoogleHomeSDK9LocalDateV4fromACs7Decoder_p_tKcfc)


  ` Creates a new instance by decoding from the given decoder.

  This initializer throws an error if reading from the decoder fails, or
  if the data read is corrupted or otherwise invalid.

  #### Declaration

  Swift

      init(from decoder: any Decoder) throws