I\'m grabbing some information from a database and the record is in an MSSQL DateTime format, when I return it, it shows in my array as follows:
[arrayItem] =>
It is functionality and simple to use.
You can convert date from date object instead of string here is the way how to use:
$obj->arrayItem->format('H:i:s') $obj->arrayItem->format('Y-m-d')