title: Convert time object of cakephp 3 in Y-m-d format
body: <p>I am working in cakephp 3 and I want to print my time object in Y-m-d format.</p>
  
  <p>This is my object </p>
  
  <pre><code>'expiry' =&gt; object(Cake\I18n\Time) {
          'time' =&gt; '2015-07-31T00:00:00+0000',
          'timezone' =&gt; 'UTC',
          'fixedNowTime' =&gt; false
  },
  </code></pre>
  
  <p>Can anyone help me with this?</p>