Minor fixes to parse dates.