title: How to get current date, month, year in scala
body: <p>i need current year, month &amp; date to 3 different variables. below code gives date time</p>
  
  <pre><code>val now = Calendar.getInstance().getTime()
  </code></pre>
  
  <blockquote>
    <p>Thu Sep 29 18:27:38 IST 2016</p>
  </blockquote>
  
  <p>but i need in YYYY MM and DD format</p>