I need to store today + 1 day
in an Ecto.DateTime variable for storing in a database, but for the life of me I can't find how to do that. The Timex library is popular in Elixir, and in older versions I found a Timex.Date.add()
but that is gone in the current version.
With
timex
3.0, you can useTimex.add/2
andTimex.Duration.from_days/1
: