title: Cakephp 3 i18nFormat to show date or date-time
body: <p>I'm using CakePHP 3. I have a table with two fields in my Mysql database, one of DATE type and another of DATETIME type.</p>
  
  <p>I want to show them in my views as a simple date or as a date-time with 'dd/mm/yyyy' or 'dd/mm/yyyy hh:mm', but also depending on <strong>i18n</strong>.</p>
  
  <p>I've tried many combinations and constants but can't get the expected result. For example, if I have this:</p>
  
  <pre><code>$this-&gt;Time-&gt;i18nFormat($date, \IntldateFormatter::SHORT);
  </code></pre>
  
  <p>...and I apply this to a date and datetime values, it will return respectively:</p>
  
  <p><strong>2/7/15 0:00:00 (GMT)   -- Date field</strong></p>
  
  <p><strong>13/7/15 10:00:00 (GMT)    -- Date-Time field</strong></p>
  
  <p>...and what I would like is:</p>
  
  <p><strong>02/07/2015  -- Date field</strong></p>
  
  <p><strong>13/07/2015 10:00 -- Date-Time field</strong></p>
  
  <p>How can I do this? Thanks in advance.</p>