Provides conversions to and from Elixir Date structs.
Cast a value to an date.
@type result() :: {:ok, %Date{calendar: term(), day: term(), month: term(), year: term()}} | {:error, binary()} | {:error, atom()}
@spec cast(value :: any()) :: result()
:decode
:uri
iex> Want.Date.cast("2022-03-04") {:ok, %Date{year: 2022, month: 03, day: 04}}copy
iex> Want.Date.cast("2022-03-04") {:ok, %Date{year: 2022, month: 03, day: 04}}
@spec cast(input :: any(), opts :: Keyword.t()) :: result()