title: Cakephp 3.2 change default date format
body: <p>I try to set the default date format of CakePHP 3.2 from <code>dd.mm.YYYY</code> to <code>YYYY-mm-dd</code>, so I will not have to use <code>$MyDatas-&gt;mydate-&gt;format('Y-m-d')</code>, and what is more important in forms while editing data I will have date in format <code>dd.mm.YYYY</code> (ex- 27.02.2016). I need <code>YYYY-mm-dd</code> (2016-02-27).</p>
  
  <p>I looked for solutions and none display any changes (in forms or as part of view: <code>$MyDatas-&gt;mydate</code>):</p>
  
  <pre><code>// in AppController
  
  ini_set('intl.default_locale', 'pl_PL');
  
  //and/or
  
  use Cake\Database\Type;
  Type::build('datetime')-&gt;useLocaleParser()-&gt;setLocaleFormat('YYYY-mm-dd');
  
  //and/or
  
  use Cake\I18n\I18n;
  I18n::locale('pl_PL');
  
  //and/or
  
  use Cake\I18n\Time; 
  Time::$defaultLocale = 'pl-PL'; //and or
  Time::setToStringFormat('YYYY-mm-dd HH:mm');//and or
  Type::build('datetime')-&gt;useLocaleParser(false);//and or
  </code></pre>
  
  <p>None of code above helped. Does anyone have any idea how I can change the date format?</p>