date parser improved