drupal 8 date formater service
\Drupal::service('date.formatter')
->format($timestamp, $type, $format, $timezone, $langcode);
Are there any code examples left?
New code examples in category PHP
\Drupal::service('date.formatter')
->format($timestamp, $type, $format, $timezone, $langcode);