title: How to initialize Gregorian calendar with date as YYYY-MM-DD format?
body: <p>I have a class which contains a variable    </p>
  
  <pre><code>private GregorianCalendar cal;
  </code></pre>
  
  <p>Now I want to initialize it with a date in <code>yyyy-mm-dd</code> format, I tried using the default constructor but the output I get is something like this <code>"2017-05-25T14:36:52+03:00"</code>, I only want <code>"2017-05-25"</code> date part? </p>
  
  <p>How do I achieve it?</p>