public static int daysSince1900(Date date){
  final Calendar calendar=Calendar.getInstance();
  calendar.clear();
  calendar.set(1900,0,1);
  return daysBetween(calendar.getTime(),date);
}

public static int daysSince1900 ( Date date ) { final Calendar calendar = Calendar . getInstance ( ) ; calendar . clear ( ) ; calendar . set ( 1900 , 0 , 1 ) ; return daysBetween ( calendar . getTime ( ) , date ) ; }
calculates the number of days between epoch and the given date .
