title: how to get the current date of android phone?
body: <p>This is how i get the phone's date, but it prompts me with a parseException, what's the problem?        </p>
  
  <pre><code>    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
      String date = sdf.format(new Date());
      Date localDate = sdf.parse(date);
  </code></pre>