title: Why my Code to convert Date time to date fails with different path?
body: <p>I tried below code with:</p>
  
  <p>This path: (WORKS) <code>"/dbfs/mnt/datalake/.../ProductPages/"</code> <code>O/P- 2020-05-29</code></p>
  
  <p>This Path:(FAILS) <code>"/dbfs/mnt/datalake/.../LMMS16005/"</code></p>
  
  <p>Error: <code>time data 'Wed Dec 11 10:18:22 2019' does not match format '%a %B %d %H:%M:%S %Y'</code></p>
  
  <pre><code>import os
  import time
  from datetime import datetime
  
  root = "/dbfs/mnt/datalake/.../LMMS16005/"
  a = time.ctime(max(os.path.getmtime(root) for root,_,_ in os.walk(root))) 
  aa = datetime.strptime(a,'%a %B %d %H:%M:%S %Y').date() 
  print(aa)
  </code></pre>