title: Access Nested DateTime Object Attribute
body: <p>Hi I am trying to access the <code>date</code> string in the following nested object.</p>
  
  <pre><code>["studyDate"]=&gt;
      object(Date)#55 (1) {
        ["date"]=&gt;
        object(DateTime)#58 (3) {
          ["date"]=&gt;
          string(26) "2013-05-31 14:43:00.000000"
          ["timezone_type"]=&gt;
          int(3)
          ["timezone"]=&gt;
          string(16) "America/New_York"
        }
      }
  </code></pre>
  
  <p>This is being returned in a <code>$previousExam</code> variable, so I am trying.
  <code>$previousExam{0}-&gt;study_date-&gt;date</code></p>
  
  <p>This gives me:</p>
  
  <pre><code>2016-06-08 10:27:45 object(DateTime)#163 (3) {
    ["date"]=&gt;
    string(26) "2016-06-07 14:41:00.000000"
    ["timezone_type"]=&gt;
    int(3)
    ["timezone"]=&gt;
    string(16) "America/New_York"
  }
  </code></pre>
  
  <p>This is where i am stuck. Trying <code>$previousExam{0}-&gt;study_date-&gt;date-&gt;date</code> returns <code>NULL</code>. Any help is appreciated.</p>