improve date format validation