title: How can I calculate the number of days between two dates with different format in Python?
body: <p>I have a pandas dataframe with a column of orderdates formatted like this: 2019-12-26.
  However when I take the max of this date it will give 2019-12-12. While it is actually 2019-12-26. It makes sense because my dateformat is Dutch and the max() function uses the 'American' (correct me if I'm wrong) format.
  This meas that my calculations aren't correct.</p>
  
  <p>How I can change the way the function calculate? Or if thats not possible, change the format of my date column so the calculations are correct?</p>
  
  <pre><code>[In] df['orderdate'] = df['orderdate'].astype('datetime64[ns]')
       print(df["orderdate"].max())
  </code></pre>
  
  <pre><code>[Out] 2019-12-12 00:00:00
  </code></pre>
  
  <p>Thank you!</p>