Add the "parseDate" hook (see #4260)