Fix formatToD month bug on the 31st