title: Parse yyyy-MM-DD String to Date yyyy-MM-DD in Android?
body: <pre><code>String startDateStr = "2017-02-03"
  DateFormat formatter = new SimpleDateFormat("yyyy-MM-DD",Locale.US);
  Date date = (Date)formatter.parse(startDateStr);    
  </code></pre>
  
  <p><strong>2017-02-03</strong> date is parsed to <strong>Tue Jan 03 00:00:00 GMT+05:45 2017</strong>  </p>
  
  <p>Did I
   miss something?</p>
  
  <p><strong>Update</strong> </p>
  
  <p>I needed a string to be converted to a date object
  while maintaining the same format.</p>
  
  <p>The reason for this is I want to make use of <code>public boolean after(Date when)</code> method</p>