Fixed the parsing for dates.