Fix to date parsing, including partial date handling