Want.Date (want v1.14.0)
Provides conversions to and from Elixir Date structs.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
cast(value)
Specs
Cast a value to an date.
Options
:decode
- If set to:uri
, executes a URI decode on the input value before casting it.
Examples
iex> Want.Date.cast("2022-03-04") {:ok, %Date{year: 2022, month: 03, day: 04}}
Link to this function