momento v0.1.1 Momento.Format
This module holds all the format/2
method.
Summary
Functions
Provide a DateTime
struct and token string to get back a formatted date/datetime string
Functions
Specs
format(DateTime.t, String.t) :: String.t
Provide a DateTime
struct and token string to get back a formatted date/datetime string.
Examples
iex> Momento.date |> Momento.format("YYYY-MM-DD")
"2016-07-01"
...> Momento.date |> Momento.format("M-D-YY")
"7-1-16"