static public boolean isSameDay(Timestamp one,Timestamp two){
  GregorianCalendar calOne=new GregorianCalendar();
  if (one != null)   calOne.setTimeInMillis(one.getTime());
  GregorianCalendar calTwo=new GregorianCalendar();
  if (two != null)   calTwo.setTimeInMillis(two.getTime());
  if (calOne.get(Calendar.YEAR) == calTwo.get(Calendar.YEAR) && calOne.get(Calendar.MONTH) == calTwo.get(Calendar.MONTH) && calOne.get(Calendar.DAY_OF_MONTH) == calTwo.get(Calendar.DAY_OF_MONTH))   return true;
  return false;
}

static public boolean isSameDay ( Timestamp one , Timestamp two ) { GregorianCalendar calOne = new GregorianCalendar ( ) ; if ( one != null ) calOne . setTimeInMillis ( one . getTime ( ) ) ; GregorianCalendar calTwo = new GregorianCalendar ( ) ; if ( two != null ) calTwo . setTimeInMillis ( two . getTime ( ) ) ; if ( calOne . get ( Calendar . YEAR ) == calTwo . get ( Calendar . YEAR ) && calOne . get ( Calendar . MONTH ) == calTwo . get ( Calendar . MONTH ) && calOne . get ( Calendar . DAY_OF_MONTH ) == calTwo . get ( Calendar . DAY_OF_MONTH ) ) return true ; return false ; }
is it the same day
