title: Parsing date using strftime
body: <p>I have a problem parsing dates taken in from scraping a website using Nokogiri. I scrape the datetime using </p>
  
  <pre><code>@date = h4.at('time[itemprop="startDate"]')[:datetime]
  </code></pre>
  
  <p>This gives me <code>2015-04-28 19:30:00 UTC</code>, which is inserted into my date column, of type "datetime".</p>
  
  <p>Using <code>strptime</code> I am trying to parse the date into a "dd/mm" format, and enter it into my Rails table:</p>
  
  <pre><code>Date.strptime(@date, "%Y-%m-%d %H:%M:%S %Z").strftime("%m/%d/%Y")
  
  @event=Event.new
  @event.date= @date
  </code></pre>
  
  <p>Any help would be very much appreciated.</p>