class ManipulacaoDatasUtil {

	public static int getDifferenceInDays(Date dateA, Date dateB) {
		
		int result = 0;
		long diffInSec = 0L;
		Calendar calA = null;
		Calendar calB = null;
		
		calA = getCalendar(dateA);
		calB = getCalendar(dateB);
		diffInSec = (calA.getTimeInMillis() - calB.getTimeInMillis()) / 1000;
		result = (int)(diffInSec / (3600L * 24L));
		
		return result;		
	}

	private  ManipulacaoDatasUtil();

}