title: Problem with short date format in php
body: <p>I have problem with date function in php. If I supply string in format "d.m.y" for example "01.01.01" it gets rendered as todays date which means that php gets confused.</p>
  
  <p>I found:</p>
  
  <blockquote>
    <p>Note:</p>
    
    <p>The "Day, month and two digit year, with dots or tabs" format (dd [.\t] mm "." yy)
    only works for the year values 61 (inclusive) to 99
    (inclusive) - outside those years the time format "HH [.:] MM [.:] SS" has
    precedence.</p>
  </blockquote>
  
  <p>on: <a href="http://www.php.net/manual/en/datetime.formats.date.php" rel="nofollow">php.net site</a></p>
  
  <p>How to override this behavior?</p>
  
  <p>I know of date_create_from_format function which would work fine if I knew input will always be in format "d.m.y", but it won't.</p>
  
  <p>UPDATE 1:</p>
  
  <p>Code</p>
  
  <pre><code>$date = new DateTime('01.01.01');
  echo $date-&gt;format('Y-m-d');
  </code></pre>
  
  <p>outputs 2010-10-19 and I wanted 2001-01-01.</p>