How can I compare two dates......but only the year,month and date.....not including the time.....compar eTo() function in Date class compares with even the time.....I want to compare with only the year,month and date
Comparing Dates
Collapse
X
-
Originally posted by jyohereHow can I compare two dates......but only the year,month and date.....not including the time.....compar eTo() function in Date class compares with even the time.....I want to compare with only the year,month and date
Why not create new Dates that have the time field chopped off then you can use the compareTo method on them.Comment
Comment