Correction to use of date_format