Date.end_of_month
You're seeing just the function
end_of_month
, go back to Date module for more information.
Specs
end_of_month(Calendar.date()) :: t()
Calculates a date that is the last day of the month for the given date
.
Examples
iex> Date.end_of_month(~D[2000-01-01])
~D[2000-01-31]
iex> Date.end_of_month(~D[2000-01-31])
~D[2000-01-31]
iex> Date.end_of_month(~N[2000-01-01 01:23:45])
~D[2000-01-31]