src/DateExtension.php
public function localDate($date, $format = null, $calendar = 'gregorian')
    {
        return $this->formatLocal($date, $format, false, $calendar);
    }
public function localDate($date, $format = null, $calendar = 'gregorian')
    {
        return $this->formatLocal($date, $format, false, $calendar);
    }
public function localDate ( $ date , $ format = null , $ calendar = 'gregorian' ) { return $ this -> formatLocal ( $ date , $ format , false , $ calendar ) ; }
Format the date value as a string based on the current locale

@param DateTime|int|string $date
@param string              $format    null, 'short', 'medium', 'long', 'full' or pattern
@param string              $calendar  'gregorian' or 'traditional'
@return string
Format the date value as a string based on the current locale