Changed the HTTP status to 422 for date error format