title: How to get only the year from the Date Class
body: <p>Is there a way to get only the year from the <code>Date</code> class and parse it into a string?
  Here is the code that I use:</p>
  
  <pre><code>Date d1 = new Date();
  d1.getYear();  `
  </code></pre>
  
  <p>And how to set the date to                    <code>DatTime.Now</code>; </p>
  
  <p>like in C#?</p>