How to convert DateTime to Date
<p>How can I convert <code>Date</code> to <code>DateTime</code> and vice versa?</p>

<p>E.g.</p>

<pre><code>Date dt = new Date();
</code></pre>

<p>Now I want to covert this to <code>DateTime</code>.</p>

<p>Also</p>

<pre><code>DateTime dtim = new DateTime();
</code></pre>

<p>Now I want to convert it to Date.</p>
