Ecto.Date
An Ecto type for dates.
Summary↑
cast(d) | Casts to date |
dump(date) | Converts an |
from_erl(arg) | Returns an |
load(arg) | Converts a date triplet into an |
local() | Returns an |
to_erl(date) | Returns an Erlang date tuple from an |
to_iso8601(date) | Converts |
to_string(date) | Converts |
type() | The Ecto primitive type |
utc() | Returns an |
Functions
Casts to date.
Converts an Ecto.Date
into a date triplet.
Returns an Ecto.Date
from an Erlang date tuple.
Converts a date triplet into an Ecto.Date
.
Returns an Ecto.Date
in local time.
Returns an Erlang date tuple from an Ecto.Date
.
Converts Ecto.Date
to ISO8601 representation.
Converts Ecto.Date
to a readable string representation.
The Ecto primitive type.
Returns an Ecto.Date
in UTC.