I have a string in the format yyyy-mm-ddThh:mm:ss and I want to convert it to a date object. How would I do this?
$date = DateTime::createFromFormat('Y-m-d\TH:i:s', '2010-06-03T14:29:00');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With