I need to find the difference in minutes between these two dateTime in such format which is written. I get this error, please help:
Uncaught Exception: DateTime::__construct(): Failed to parse time string (27/09/2020 01:00:19 AM) at position 0 (2):
$datetime1 = new DateTime('27/09/2020 01:00:19 AM');
$datetime2 = new DateTime('27/09/2020 01:00:19 AM');
$interval = $datetime1->diff($datetime2);
echo $interval->format('%hh %im');