protected function convertDatetimeToCarbon($value)
    {
        if (is_array($value)) {
            return array_map(function ($v) {
                return new Carbon($v);
            }, $value);
        }

        return new Carbon($value);
    }
protected function convertDatetimeToCarbon($value)
    {
        if (is_array($value)) {
            return array_map(function ($v) {
                return new Carbon($v);
            }, $value);
        }

        return new Carbon($value);
    }
protected function convertDatetimeToCarbon ( $ value ) { if ( is_array ( $ value ) ) { return array_map ( function ( $ v ) { return new Carbon ( $ v ) ; } , $ value ) ; } return new Carbon ( $ value ) ; }
Convert a Datetime field to Carbon items to be used for comparisons.

@param $value
@return \Carbon\Carbon
@throws QBParseException
Convert a Datetime field to Carbon items to be used for comparisons .