Convert string to date, correct typo for max date set