Created date_format variable to store the format rather than repeating it.