Error fixing for dates
input errors