Help Needed with Date Format in java
<p>I have My Database data in this format </p>

<p>18-NOV-10 </p>

<p>I have to pass the same format into java.util.Date like this </p>

<p>Date date = new java.util.Date(dateformater);</p>

<p>so that the result of java.util.Date is like this 18-NOV-10 </p>

<p>Is this possible ??</p>

<p>I tried this way </p>

<pre><code>String strDate = "12-NOV-07";

    SimpleDateFormat sdfSource = new SimpleDateFormat("dd-MMM-yy");

    Date date = sdfSource.parse(strDate);

    System.out.println(date);
</code></pre>

<p>But i am getting the result as "Mon Nov 12 00:00:00 IST 2007 " which i want it only
12-NOV-07"</p>
