title: Python ValueError: time data '02-01-2020' does not match format '%d/%m/%y' (match)
body: <p>I am working on a dataset for machine learning but I have an error for the date that not matching. I am tried both times with different strings in format <code>&quot;%d-%m-%y&quot;</code>, <code>&quot;%d/%m/%y&quot;</code> but it is not worked for me. What can I do so that problem will solve. What can I do as dataset dates are in a different format?</p>
  <pre><code>df_MR['Date'] = pd.to_datetime(df_MR['Date'], format = &quot;%d-%m-%y&quot;)```
  
  ValueError: time data '30/01/20' does not match format '%d-%m-%y' (match)
  
  
  df_MR['Date'] = pd.to_datetime(df_MR['Date'], format = &quot;%d/%m/%y&quot;)```
  
  ValueError: time data '02-01-2020' does not match format '%d/%m/%y' (match)
  </code></pre>