php new dateTime and gmdate
<p>How would I convert the following so that it uses the <a href="http://php.net/manual/en/class.datetime.php" rel="nofollow">datetime class</a>?:</p>

<pre><code>array(
    'post_date' =&gt; date('Y-m-d H:i:s', $date),
    'post_date_gmt' =&gt; gmdate('Y-m-d H:i:s', $date),
);
</code></pre>

<p>Eg this part is easy but how about the gmdate?</p>

<pre><code>$oDate = new DateTime($date);
array(
    'post_date' =&gt; $oDate-&gt;format('Y-m-d H:i:s'),
    'post_date_gmt' =&gt; gmdate('Y-m-d H:i:s', $date),
);
</code></pre>
