public static function getDateTime($format, $timestamp = 'now')
    {
        $date = strtotime($timestamp);
        if (!$date) {
            return $timestamp;
        }
        return date($format, $date);
    }