Date.to_string
You're seeing just the function
to_string
, go back to Date module for more information.
Specs
to_string(Calendar.date()) :: String.t()
Converts the given date to a string according to its calendar.
Examples
iex> Date.to_string(~D[2000-02-28])
"2000-02-28"
iex> Date.to_string(~N[2000-02-28 01:23:45])
"2000-02-28"
iex> Date.to_string(~D[-0100-12-15])
"-0100-12-15"