public function filterDateFormat($datetime, string $pattern = 'dd/MM/yyyy', string $locale = null): string
    {
        if (empty($locale)) {
            $locale = $this->getApp()->getProfile()->getLocale();
        }

        return b_date_format($datetime, $pattern, $locale);
    }
public function filterDateFormat($datetime, string $pattern = 'dd/MM/yyyy', string $locale = null): string
    {
        if (empty($locale)) {
            $locale = $this->getApp()->getProfile()->getLocale();
        }

        return b_date_format($datetime, $pattern, $locale);
    }
public function filterDateFormat ( $ datetime , string $ pattern = 'dd/MM/yyyy' , string $ locale = null ) : string { if ( empty ( $ locale ) ) { $ locale = $ this -> getApp ( ) -> getProfile ( ) -> getLocale ( ) ; } return b_date_format ( $ datetime , $ pattern , $ locale ) ; }
Filter to format date.

@param \DateTime|int $datetime DateTime object or timestamp
@param string        $pattern  Pattern of date result waiting
@param string        $locale   Locale for pattern translation

@return string
@throws \Berlioz\Core\Exception\RuntimeException if application not accessible
Filter to format date .