title: How can I convert 20:13-02-05T13:45:17-0500 to a MySQL datetime?
body: <p>In PHP, how can I convert a date/time string in the format 20:13-02-05T13:45:17-0500 to a valid MySQL datetime so I can store it?</p>
  
  <p>So far I've tried</p>
  
  <pre><code>$date_id = date('Y-m-d H:i:s', strtotime($date_id));
  </code></pre>