fix date handling in rake tasks for hospital inpatient & outpatient stats