Here’s an easy way to convert EU datetime format to ISO 8601 datetime format in php.$dateInputFormat=’d/m/y H:i:s’;
$dateOutputFormat=’Y-m-d H:i:s’;

DateTime::createFromFormat($dateInputFormat,$datetime)->format($dateOutputFormat);

Hope it Helps!

Leave a Reply

Your email address will not be published. Required fields are marked *