Improve date conversion.