Better treatement of bad date format