small improvements in date parser