src/CRUDlex/TwigExtensions.php
public function formatDate($value, $isUTC)
    {
        $timezone = $isUTC ? 'UTC' : date_default_timezone_get();
        return $this->formatTime($value, $timezone, 'Y-m-d');
    }
public function formatDate($value, $isUTC)
    {
        $timezone = $isUTC ? 'UTC' : date_default_timezone_get();
        return $this->formatTime($value, $timezone, 'Y-m-d');
    }
public function formatDate ( $ value , $ isUTC ) { $ timezone = $ isUTC ? 'UTC' : date_default_timezone_get ( ) ; return $ this -> formatTime ( $ value , $ timezone , 'Y-m-d' ) ; }
Formats the given value to a date of the format 'Y-m-d'.

@param string $value
the value, might be of the format 'Y-m-d H:i' or 'Y-m-d'
@param boolean $isUTC
whether the given value is in UTC

@return string
the formatted result or an empty string on null value
Formats the given value to a date of the format Y - m - d .