the constructor you are using is a deprecated onethe value it adds the year with 1900.im just pasting the details in the
java api dcoumentation refernce here
public Date(int year,
int month,
int date)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(year + 1900, month, date) or GregorianCalendar(year + 1900, month, date).
Allocates a Date object and initializes it so that it represents midnight, local time, at the beginning of the day specified by the year, month, and date arguments.
Parameters:
year - the year minus 1900.
month - the month between 0-11.
date - the day of the month between 1-31.
abt the questions
1)
you can use Calendar instead of the Date
2)
abt the comparison
if <0 the date is smaller
if =0 the date is equal
if >0 the date is greater
[ August 04, 2005: Message edited by: praveen k ]
[ August 04, 2005: Message edited by: praveen k ]