Click here for DateTime::format function details, and here for its alias function, date_format.
For information on the DateTime class, click here.