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