title: How to initialize a variable of date type in Java?
body: <pre class="lang-java prettyprint-override"><code>import java.util.Date;
  Date firstDate; 
  </code></pre>
  <p>I don't know how to initialize the <code>firstDate</code> for example for String you say</p>
  <pre><code>String line1=&quot;First line&quot; 
  </code></pre>
  <p>but what is the format for date can you give me an example?</p>