title: Parse a date in rails
body: <p>I have a date (Which is actually parsed from a PDF) and it could be any of the following format:</p>
  
  <pre><code>MM/DD/YYYY
  MM/DD/YY
  M/D/YY
  October 15, 2007
  Oct 15, 2007 
  </code></pre>
  
  <p>Is there any gem or function available in rails or ruby to parse my date? 
  Or I need to parse it using regex?</p>
  
  <p>BTW I'm using ruby on rails 3.2.</p>