title: Getting month in a string format
body: <p>I want to show the date in format 22-Apr-2012.
  I am using this code:</p>
  
  <pre><code>        SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
  
          sdf.applyPattern("dd MMM yyyy");
          Date x = new Date(time.year,time.month,time.monthday);
          System.out.println(sdf.format(x));
  </code></pre>
  
  <p>But i am getting o/p as:
  22 apr 3912.
  I want to know why it is showing 3912 in place of 2012.</p>