Methods of the Date class

boolean after(Date other)
Tests if this date is after the specified date
boolean before(Date other) Tests if this date is before the specified date
int compareTo(Date other)
Tells which date came before the other
long getTime()
Returns milliseconds since the epoch
(1970-01-01 00:00:00 GMT)
void setTime(long n)
Sets the date to the given number of milliseconds since the epoch


previous | start | next .... [Slide 4] ....