title: Convert datetime to format in ruby on rails
body: <p>How could I convert the following date string into accepted format in ruby on rails</p>
  
  <pre><code>Thu, Aug 25 12:00 AM
  </code></pre>
  
  <p>Also I want  global solution that could also go with the following formats including the above given: </p>
  
  <pre><code>August 25 2016
  </code></pre>