title: Calendar return wrong current date android
body: <p>Why does this code return 0001-02-05?</p>
  
  <pre><code>public static String getNowDate() throws ParseException
  {        
      return Myformat(toFormattedDateString(Calendar.getInstance()));
  }
  </code></pre>
  
  <p>I changed the code to:</p>
  
  <pre><code>public static String getNowDate() throws ParseException
  {        
      Calendar temp=Calendar.getInstance();
      return temp.YEAR+"-"+temp.MONTH+"-"+temp.DAY_OF_MONTH;
  }
  </code></pre>
  
  <p>And now it returns 1-2-5. </p>
  
  <p>Please, help me get the actual date. all i need is the Sdk date.</p>