title: Rails datetime format "dd/mm/yyyy"
body: <p>I receive dates like <code>&quot;14/04/17 07:00&quot;</code></p>
  <p>I want to get only the date like this: <code>14/04/2017</code></p>
  <p>And only the hour <code>07:00</code></p>
  <p>I tried this way, BTW I know it's for US time, it render me <code>17/04/10</code></p>
  <pre><code>DateTime.parse(datetime).strftime(&quot;%d/%m/%Y&quot;)
  </code></pre>
  <p>Humm I can't find anywhere how to do this?</p>
  <p>Thanks for your help</p>
  <h1>EDIT</h1>
  <p>with the suggestion:</p>
  <p><code> my_date = DateTime.parse(datetime).strftime(&quot;%d/%m/%Y&quot;)</code></p>
  <p>If I do in my terminal:</p>
  <pre><code>[1] pry(main)&gt; O = Onduleur.last
    Onduleur Load (0.2ms)  SELECT  &quot;onduleurs&quot;.* FROM &quot;onduleurs&quot; ORDER BY &quot;onduleurs&quot;.&quot;id&quot; DESC LIMIT ?  [[&quot;LIMIT&quot;, 1]]
  =&gt; #&lt;Onduleur:0x007fa6b70186e0
   id: 144,
   identifier: 2,
   datetime: &quot;11/04/17 23:00&quot;,
   energy: 0,
   created_at: Wed, 12 Apr 2017 15:17:04 UTC +00:00,
   updated_at: Wed, 12 Apr 2017 15:17:04 UTC +00:00&gt;
  [2] pry(main)&gt; my_date = DateTime.parse(O.datetime).strftime(&quot;%d/%m/%Y&quot;)
  =&gt; &quot;17/04/2011&quot;
  [3] pry(main)&gt;
  </code></pre>