title: Why does "Date d = new Date();" return an error?
body: <p>This has probably been asked and answered a million times, but I can't seem to find a solution anywhere.  Upon starting an activity in an android app, I want to display the current date and time.  From what I understand the date part can be done simply with the following:  </p>
  
  <pre><code>Date d = new Date();  
  d.getTime();  
  CharSequence s  = DateFormat.format("EEEE, MMMM d, yyyy", d.getTime());  
  
  TextView date = (TextView)findViewById(R.id.dateText);  
  date.setText(s);  
  
  TextView time = (TextView)findViewById(R.id.timeText);  
  time.setText(s);  
  </code></pre>
  
  <p>In eclipse it gives me an error and says that the constructor date is undefined.  I chose the auto fix option and it added a 0 as a parameter in the Date constructor.  This produced a date, but the date is Dec. 31, 1969.  What am I missing here?</p>
  
  <p>This is probably trivial, but I'm still new to this stuff.</p>
  
  <p>Thanks in advance for any advice.</p>