How to go from mktime to datetime object?
<p>I have an mktime that I want to have return a datetime object. The best way I came up with seems way too convoluted:</p>

<pre><code>DateTime::createFromFormat("Y-m-d H:i:s",date("Y-m-d H:i:s",mktime(0, 0, 0, $data[$j]['month'], $data[$j]['day'],$data[$j]['year'])));
</code></pre>

<p>any better ways?</p>
