I need formatted date-time from php array, I received it from mysql like this:
Array(
[0] => Array
(
[Holidays] => DateTime Object
(
[date] => 2018-01-01 00:00:00.000000
[timezone_type] => 3
[timezone] => Europe/Berlin
)
) )
But I need the new array like this:
Array
(
[0] => 2018-12-31
[1] => 2018-12-07
)
Saw a post like this but it doesn't have datetimeobject