Originally posted by Bal Sharma:
Hey Byron:
Have you try java.util.Calendar? I think it is pretty neat. I can use this class for whatever I wanna use. Simple example for today date is:
Calendar today = Calendar.getInstance();
int month = today .get(Calendar.MONTH);
int year = today .get(Calendar.YEAR);
int today = today .get(Calendar.DAY_OF_MONTH);
Once you get and set two different date. You can compare as you wish. Cann't you? I hope this will help you. BK
Originally posted by Tim Holloway:
Are you using the java.sql.Date and java.util.Date classes?
Originally posted by Jim Yingst:
OK, now that we can read it, it looks like this is a simple case of using " == foo" where ".equals(foo)" is more appropriate.