src/Utils/TimeTools.php
public static function toEuropeanFormat($date = null, $withHour = false)
  {
    if (is_string($date)) {
      $time = strtotime($date);
    } elseif (is_a($date, 'DateTime')) {
      $time = $date->getTimestamp();
    } else {
      return null;
    }
    return date('d/m/Y' . ($withHour ? ' H:i:s' : ''), $time);
  }
public static function toEuropeanFormat($date = null, $withHour = false)
  {
    if (is_string($date)) {
      $time = strtotime($date);
    } elseif (is_a($date, 'DateTime')) {
      $time = $date->getTimestamp();
    } else {
      return null;
    }
    return date('d/m/Y' . ($withHour ? ' H:i:s' : ''), $time);
  }
Passe une date au format européen jj/mm/aaaa hh:mm:ss

@param  string|DateTime $date      Date quelconque
@param  boolean         $withHour  Retourner les heures ou non
@return string                     Date au format européen