/** * * @param string $strLocalDateTime Date time * @param string $strLocalTimeZone Local time zone * @param string $strTargetTimeZone Target time zone * @param string $strFormat Format * @return string Date time */ public static function convertDateTime($strLocalDateTime, $strLocalTimeZone, $strTargetTimeZone, $strFormat = "Y-m-d H:i:s") { $dateTime = new self($strLocalDateTime, $strLocalTimeZone); return $dateTime->getDateTimeForTimeZone($strTargetTimeZone, $strFormat); }