Ds3231 alarm when date match

The alarm registers on the DS3231 only allow you to store seconds, minutes, hours, and either the day of the month(1-31) or the day of the week (1-7), so there is no way for it to internally adjust for the last day of the month. If you want an alarm on the last day of the month, presumably your code would need to set the day of the month properly.