DateTime.php
public static function formatDate($time, $format = DATE_ISO8601, $timezone = 'UTC')
    {
        return static::create($time, $timezone)->format($format);
    }
public static function formatDate($time, $format = DATE_ISO8601, $timezone = 'UTC')
    {
        return static::create($time, $timezone)->format($format);
    }
public static function formatDate ( $ time , $ format = DATE_ISO8601 , $ timezone = 'UTC' ) { return static :: create ( $ time , $ timezone ) -> format ( $ format ) ; }
Returns date formatted according to the specified format and timezone

@param string $time     A date/time string. Valid formats could be:
- 'now'
- '10 September 2000'
- '2016-12-30T10:01:33+0700'
- '1483067019' (Unix Timestamp)
@param string $format   Format accepted by date(). [optional]
@param string $timezone String representing the desired time zone. [optional]
@return string
Returns date formatted according to the specified format and timezone