title: Parse and rename date in filename
body: <p>I have some files like this:</p>
  
  <pre><code>XXXXXXXX-15Jan2014.pdf
  XXXXXXXX-15Jan2015.pdf
  XXXXXXXX-22Aug2013.pdf
  </code></pre>
  
  <p>I'd like to rename them to</p>
  
  <pre><code>XXXXXXXX-2014-01-15.pdf
  XXXXXXXX-2015-01-15.pdf
  XXXXXXXX-2013-08-22.pdf
  </code></pre>
  
  <p>That is, rename <code>&lt;day&gt;&lt;month&gt;&lt;year&gt;</code> to <code>&lt;year&gt;-&lt;month-as-number&gt;-&lt;day&gt;</code>.</p>
  
  <p>Is there a super easy linux/osx command to do this?</p>