java get the current computer's date
<p>how can i get computer's date on java, i want just year, month, day
i tried to get calender like this</p>

<pre><code>Calendar c =Calendar.getInstance();
        c.clear(Calendar.HOUR)
</code></pre>

<p>but can't know to deal with it,</p>
