public DateFormatterInterface::format($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL)
Formats a date, using a date type or a custom date format string.
Parameters
int $timestamp: A UNIX timestamp to format.
string $type: (optional) The format to use, one of:
One of the built-in formats: 'short', 'medium', 'long', 'html_datetime', 'html_date', 'html_time', 'html_yearless_date', 'html_week', 'html_month', 'html_year'. The name of a date type defined by a date for