I am trying to access a a property of this object:
object(DateTime)#321 (3) {
["date"]=>
string(26) "2016-08-02 12:45:01.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/London"
}
I have tried this:
$boo = aboveObject;
$boo->date;
I get this error:
"Notice: Undefined property: DateTime::$date"
I have also tried this:
$foo = aboveObject;
$foo['date']
I get this error:
"Error: Cannot use object of type DateTime as array"
of course the second error makes more sense to me bur the first way i tried should be working...? any idea what is going on?