title: Java how to Convert String Date format
body: <p>How to Convert String date format example I have Date like this</p>
  
  <p><code>2019-01-01</code></p>
  
  <p>and change the format into</p>
  
  <p><code>2019-01</code></p>
  
  <p>the year and date only?</p>