How do I programmatically save "2019-11-04 07:30:00+01"? I have "2019-11-04 07:30:00+01" as datetime value. I am not getting how to handle  the "+1" part in a Drupal 8 date field.

I am using this code, but it's not giving me any value.

use Drupal\Core\Datetime;

$userTimezone = new DateTimeZone(drupal_get_user_timezone());
$gmtTimezone = new DateTimeZone('GMT');
$myDateTime = new DateTime($item['start_date'], $gmtTimezone);
print_r($myDateTime);
die;
There is no DateTime class in Drupal\Core\Datetime you should use DrupalDateTime class instead try with.

    use Drupal\Core\Datetime\DrupalDateTime;
   //$userTimezone = new DateTimeZone(drupal_get_user_timezone());
    $gmtTimezone = new DateTimeZone('GMT');
    $myDateTime = new DrupalDateTime($item['start_date'], $gmtTimezone);
    $dateTime = $myDateTime-&gt;getPhpDateTime();