public static function convertDate($oldDateString, $newDateFormatString, $timezone = null) { $Date = new DateTime($oldDateString, $timezone); return $Date->format($newDateFormatString); }