Set the day before setting the month to avoid failure when running the test on the 31st day of a month