What do you mean with "one is System date and one is Util date"? There is a Date class in package java.util. Do you mean that you have a java.util.Date object and you want to compare it to the current system date?
You can do that like this:
- Get two Calender objects using the Calendar.getInstance() method. - Set one of the two to the Date object that you have by using the setTime() method. - Use the before() or after() methods to compare the Calendars.