Function to change the date of a Date object to the last day of the month
last_day(date)
date object
Date object