src/Date/DateUtils.php
public static function format($datetime, $format = DateFormat::FORMAT_SHORT)
    {
        $datetime = strtotime($datetime);
        if (!$datetime) {
            return '';
        }
        return date($format, $datetime);
    }
public static function format($datetime, $format = DateFormat::FORMAT_SHORT)
    {
        $datetime = strtotime($datetime);
        if (!$datetime) {
            return '';
        }
        return date($format, $datetime);
    }
public static function format ( $ datetime , $ format = DateFormat :: FORMAT_SHORT ) { $ datetime = strtotime ( $ datetime ) ; if ( ! $ datetime ) { return '' ; } return date ( $ format , $ datetime ) ; }
Format date
@author Olawale Lawal <wale@cottacush.com>
@param $format
@param $datetime
@return bool|string
Format date