Undefined $date_format, wrong variable name