Fixed parsing bug for the 30th and 31st of the month