public int compare(Date pO1, Date pO2)
	      {
	         Calendar cal = Calendar.getInstance();
	         cal.setTime(pO1);
	         int date1 = cal.get(Calendar.YEAR)*10000 + cal.get(Calendar.MONTH) * 100 + cal.get(Calendar.DATE);
	         cal.setTime(pO2);
	         int date2 = cal.get(Calendar.YEAR)*10000 + cal.get(Calendar.MONTH) * 100 + cal.get(Calendar.DATE);
	         return date1 - date2;
	      }