java date issue in getting month and year
<p>i am getting problem from extracting month and year from data object.</p>

<pre><code>String strdate = "2012-11-07T13:28:23";
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
// Date date = dateFormat.parse(strdate);
Date date = new Date();
System.out.println(date.getDate());
System.out.println(date.getYear());
System.out.println(date.getMonth());
System.out.println(date);
</code></pre>

<p>my output is like</p>

<pre><code>28
112
10
Wed Nov 28 15:37:30 IST 2012
</code></pre>

<p>what is wrong here ?  </p>
