title: Converting String into Datetime in Python
body: <p>I need to convert </p>
  
  <pre><code>DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"]) 
  </code></pre>
  
  <p>into a datetime object.</p>
  
  <p>I am using below code :</p>
  
  <pre><code>DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"])
  pd.to_datetime(DoB,format = '%d%b%y')
  </code></pre>
  
  <p>and it works perfectly fine with output as :</p>
  
  <pre><code>2059-09-07
  2055-01-01
  2047-12-15
  2042-07-11
  </code></pre>
  
  <p>But I need <code>19XX</code> instead of <code>20XX</code>.</p>
  
  <p>Please help.</p>