Convert timestamp using DateFormatter service
To change a timestamp to a custom format you need to use the `date.formatter` service.
For e.g.
$custom_date_format = \Drupal::service('date.formatter')->format($timestamp, 'custom', 'd/m/Y')
// This would print 15/04/2024