An optional calendar object, if missing the default instance is used
Details
This function takes a vector of dates and returns another vector of dates
of the same length returning at each position whether the corresponding
end-of-month date in the currently active (global) calendar.