public static long elapsedMilliseconds(Date dateStart,Date dateEnd){
  return dateEnd.getTime() - dateStart.getTime();
}

public static long elapsedMilliseconds ( Date dateStart , Date dateEnd ) { return dateEnd . getTime ( ) - dateStart . getTime ( ) ; }
elapsedminuted get the elapsed minutes between two dates
