how to print date from this date object in php
<pre><code>[logintime] =&gt; DateTime Object
    (
        [date] =&gt; 2012-02-12 13:18:38
        [timezone_type] =&gt; 3
        [timezone] =&gt; Asia/Calcutta
)
</code></pre>

<p>logintime is column name of datetime type, when i fetch record from database it return whole object so proble in printing logintiome can any one help</p>

<p>i want only date </p>
