Using Elixir’s built-in Date module, you can easily play with the timeline.
Date
Elixir makes comparing dates straightforward.
In Elixir, the Date module has a to_string/1 function that converts a date to a string.
to_string/1
Elixir’s standard library, through the DateTime module, allows fetching the current date and time.
DateTime
Elixir’s standard library, combined with the power of the Erlang :calendar module, provides basic support for parsing dates.
:calendar