title: Create Date object in PHP for dates before 1970 in certain format
body: <p>I have date witch is formatted <code>d-m-y</code>  like <code>22-10-49</code> I want to convert it to Date object to save it in my mysql Database. I try :</p>
  
  <pre><code>DateTime::createFromFormat('d-m-y', $mydate , new DateTimeZone('GMT'));
  </code></pre>
  
  <p>but the result is <code>2049-10-22</code> instead of <code>1949-10-22</code>. I searched and got that <code>createFromFormat</code> only returns date after 1970. but I don't know what to do.</p>
  
  <p>P.s: <code>22-10-49</code> is what I have, and there are several other dates like this, I cannot change the format of it or convert it to <code>22-10-1949</code> or any other formats.
  P.S 2 : "I'm working with birthdays and excpect <code>22-10-15</code> to be 1915 rather than 2015.</p>