quantlib.time.date.end_of_month

end_of_month(Date date)

Last day of the month to which the given date belongs.