momento v0.1.2 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

format(datetime, format_string)

Specs

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"