title: How to parse date with only month and year with SimpleDateFormat
body: <p>I am working with expiration date of card. I have a API where I will get expiration date in "<strong>yyMM</strong>" format as "<strong>String</strong>". Here I am trying to use </p>
  
  <blockquote>
    <p>SimpleDateFormat with TimeZone.getTimeZone("UTC")</p>
  </blockquote>
  
  <p>So my code is like </p>
  
  <pre><code>String a= "2011";
  SimpleDateFormat formatter = new SimpleDateFormat("yyMM");
  formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
  Date date = formatter.parse(a);
  System.out.println(date);
  </code></pre>
  
  <p>Now problem is, when I am passing 2011 the out it gives is <code>Sat Oct 31 17:00:00 PDT 2020</code></p>
  
  <p>Here you can see I am passing <strong>11</strong> as month but it is converting it to <strong>Oct</strong> instead of <strong>Nov</strong>. </p>
  
  <p><strong>Why</strong>?</p>
  
  <p>And what other options I can use to convert string with <code>yyMM</code> to Date with Timezone? </p>