title: Ruby string to date time format
body: <p>I have multiple dates coming in from user input, examples:</p>
  
  <pre><code>MM-DD-YYYY
  
  6-3-1975
  
  MM/DD/YYYY
  
  4/23/1967
  </code></pre>
  
  <p>using the ruby built in <code>require 'time'</code></p>
  
  <p>and trying to <code>Time.parse("4/23/1967")</code></p>
  
  <p>gives me the error time.rb : <code>argument out of range</code>.</p>
  
  <p>Any solutions to convert different user inputs with either dashes or slashes to parse?</p>