handle invalid date format exception