src/FlexiPeeHP/FlexiBeeRO.php
public static function flexiDateTimeToDateTime($flexidatetime)
    {
        if (strchr($flexidatetime, '.')) { //NewFormat
            $format = self::$DateTimeFormat;
        } else { // Old format
            $format = 'Y-m-d\TH:i:s+P';
        }
        return \DateTime::createFromFormat($format, $flexidatetime);
    }
public static function flexiDateTimeToDateTime($flexidatetime)
    {
        if (strchr($flexidatetime, '.')) { //NewFormat
            $format = self::$DateTimeFormat;
        } else { // Old format
            $format = 'Y-m-d\TH:i:s+P';
        }
        return \DateTime::createFromFormat($format, $flexidatetime);
    }
public static function flexiDateTimeToDateTime ( $ flexidatetime ) { if ( strchr ( $ flexidatetime , '.' ) ) { //NewFormat $ format = self :: $ DateTimeFormat ; } else { // Old format $ format = 'Y-m-d\TH:i:s+P' ; } return \ DateTime :: createFromFormat ( $ format , $ flexidatetime ) ; }
FlexiBee dateTime to PHP DateTime conversion

@param string $flexidatetime 2017-09-26T10:00:53.755+02:00 or older 2017-05-19T00:00:00+02:00

@return \DateTime | false
FlexiBee dateTime to PHP DateTime conversion