title: How to convert a String into an Ecto.DateTime in Elixir?
body: <p>I need to convert a string containing a valid UTC time to an <code>Ecto.DateTime</code> one, which I will insert it into my database with the correct format later. I have tried using the <code>Ecto.DateTime.cast(date)</code> method but it doesn't seem to work. The string is <code>Sat Aug 04 11:48:27 +0000 2012</code> and comes from the Twitter API.</p>
  
  <p>I know there are libraries such as <strong>Timex</strong> which I didn't inspect yet. Is there any easy working solution already built in Elixir?</p>