public static boolean isBeforeToday(Calendar _calendar){
  return _calendar.before(Calendar.getInstance());
}

public static boolean isBeforeToday ( Calendar _calendar ) { return _calendar . before ( Calendar . getInstance ( ) ) ; }
allows to know if a given calendar instance is set before today
