converted visit_date to date, so that method strftime can be recognised