Sorry for the incorrect file reference.

The date format
Code:
define('DATE_FORMAT', 'd/m/Y'); // this is used for date() // BMH addition PHP 7
should be placed in YOUR_ADMIN\stats-sales_report.php at approx line 29.