You can also use datix and tox:
iex> months = [ "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" ]
iex> format = "%d-%b-%y"
iex> parse = fn(date) ->
...> date
...> |> Datix.Date.parse!(format, abbreviated_month_names: months)
...> |> Tox.Date.shift(year: 2000)
...> end
iex> date = parse.("22-AUG-18")
~D[2018-08-22]
iex> Calendar.strftime(date, format, abbreviated_month_names: fn x -> Enum.at(months, x - 1) end)
"22-AUG-18"






















