The java.util.Date class represents a specific instant in time, with millisecond precision.
Following is the declaration for java.util.Date class:
public class Date extends Object implements Serializable, Cloneable, Comparable<Date>
|S.N.||Constructor & Description|
This constructor allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.
This constructor allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.
|S.N.||Method & Description|
This method tests if this date is after the specified date.
This method tests if this date is before the specified date.
This method return a copy of this object.
This method compares two Dates for ordering.
This method compares two dates for equality.
This method returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
This method returns a hash code value for this object.
This method sets this Date object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT.
This method converts this Date object to a String of the form.
This class inherits methods from the following classes: