title: class Date in Java - cannot find symbol
body: <p>With code:
  <code>String timeStamp = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss").format(new Date());</code></p>
  
  <p>I get:</p>
  
  <pre><code>cannot find symbol
  symbol  : class Date
              String timeStamp = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss").format(new Date());
  </code></pre>
  
  <p>Why?</p>
  
  <p>My imports:</p>
  
  <pre><code>import java.awt.AWTException;
  import java.awt.Robot;
  import java.awt.Rectangle;
  import java.awt.Toolkit;
  import java.awt.image.BufferedImage;
  import java.io.*;
  import java.text.SimpleDateFormat;
  import javax.imageio.ImageIO;
  </code></pre>