public static long subMinutes(final Date date1, final Date date2) {

    return subTime(date1, date2, DatePeriod.MINUTE);
  }
public static long subMinutes ( final Date date1 , final Date date2 ) { return subTime ( date1 , date2 , DatePeriod . MINUTE ) ; }
Get how many minutes between two date.

@param date1 date to be tested.
@param date2 date to be tested.
@return how many minutes between two date.