title: ROR + Ruby Date From XML API
body: <p>By using XML API, I got date-time as <code>"2008-02-05T12:50:00Z"</code>. Now I wanna convert this text format into different format like <code>"2008-02-05 12:50:00"</code>. But I am getting proper way.</p>
  
  <p>I have tried this one ::  <code>@a = "2008-02-05T12:50:00Z"</code></p>
  
  <p>Steps</p>
  
  <pre><code>1. @a.to_date
  
   =&gt; Tue, 05 Feb 2008 
  2. @a.to_date.strftime('%Y')
  
   =&gt; "2008" 
  3. @a.to_date.strftime('%Y-%m-%d %H:%M:%S')
  
   =&gt; "2008-02-05 00:00:00
  </code></pre>
  
  <p>Suggest some thing ?</p>