title: Rails ActiveSupport Time Parsing?
body: <p><a href="http://api.rubyonrails.com/classes/ActiveSupport/CoreExtensions/Time/Conversions.html" rel="noreferrer">Rails' ActiveSupport module extends the builtin ruby Time class with a number of methods.</a></p>
  
  <p>Notably, there is the <code>to_formatted_s</code> method, which lets you write <code>Time.now.to_formatted_s(:db)</code> to get a string in Database format, rather than having to write ugly <code>strftime</code> format-strings everywhere.</p>
  
  <p>My question is, is there a way to go backwards? </p>
  
  <p>Something like <code>Time.parse_formatted_s(:db)</code> which would parse a string in Database format, returning a new Time object. This seems like something that rails should be providing, but if it is, I can't find it.</p>
  
  <p>Am I just not able to find it, or do I need to write it myself?</p>
  
  <p>Thanks</p>