bug fixes for date parser