Drupal 8 Date Formater Service
\Drupal::service('date.formatter')
->format($timestamp, $type, $format, $timezone, $langcode);
Dizzy Dove
\Drupal::service('date.formatter')
->format($timestamp, $type, $format, $timezone, $langcode);