Added infer_date to utils.