added edge case for Date.strptime parsing invalid dates