src/FlexiPeeHP/FlexiBeeRO.php
public static function flexiDateToDateTime($flexidate)
    {
        return \DateTime::createFromFormat(strstr($flexidate, '+') ? self::$DateFormat.'O'
                    : self::$DateFormat, $flexidate)->setTime(0, 0);
    }
public static function flexiDateToDateTime($flexidate)
    {
        return \DateTime::createFromFormat(strstr($flexidate, '+') ? self::$DateFormat.'O'
                    : self::$DateFormat, $flexidate)->setTime(0, 0);
    }
public static function flexiDateToDateTime ( $ flexidate ) { return \ DateTime :: createFromFormat ( strstr ( $ flexidate , '+' ) ? self :: $ DateFormat . 'O' : self :: $ DateFormat , $ flexidate ) -> setTime ( 0 , 0 ) ; }
FlexiBee date to PHP DateTime conversion

@param string $flexidate 2017-05-26 or 2017-05-26+02:00

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