I have the following string with the 'T' seperator - how do change the $format
var correctly to take into account the 'T' within the $datestring
?
$datestring = '2018-12-30T11:30:00';
$format = 'Y-m-dG:i:s';
$date = DateTime::createFromFormat($format, $datestring);
var_dump($date); // currently returns false rather than an object