# Dates

Calendar types were added to Elixir in 1.3. See the release blog post ["Calendar types and sigils"](http://elixir-lang.org/blog/2016/06/21/elixir-v1-3-0-released/).

Elixir standard library only offers basic support, so an additional Calendar library is required. Read through the documentation for the Timex libraries:

* Timex [README](https://github.com/bitwalker/timex)/[Docs](https://hexdocs.pm/timex/getting-started.html)
* CalEcto: [README](https://github.com/bitwalker/timex_ecto)

There resources were created before the release of Elixir 1.3, but are still worth reviewing.

* [Comparing dates and times in Elixir with Ecto](https://dockyard.com/blog/2015/11/30/comparing-date-time-in-elixir-with-ecto)
* [Compare date and time in Elixir with protocols](http://www.creativedeletion.com/2016/03/07/comparing_dates_in_elixir.html)
* [Mastering date/time in Elixir](https://www.youtube.com/watch?v=keUbVvMJeKY\&feature=youtu.be\&t=1630) - a good overview of the Calendar libraries at the end of this presentation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://montrealelixir.gitbook.io/playbook/trails/dates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
