private int compareDates(Calendar base, Calendar toCompare)
	{
		int result;
		
		if (toCompare.get(Calendar.YEAR) > base.get(Calendar.YEAR)
				|| (toCompare.get(Calendar.YEAR) == base.get(Calendar.YEAR) && toCompare
						.get(Calendar.MONTH) > base.get(Calendar.MONTH))
				|| (toCompare.get(Calendar.YEAR) == base.get(Calendar.YEAR)
						&& toCompare.get(Calendar.MONTH) == base
								.get(Calendar.MONTH) && toCompare
						.get(Calendar.DAY_OF_MONTH) > base
						.get(Calendar.DAY_OF_MONTH)))
		{
			result = -1;
		}
		else if (toCompare.get(Calendar.YEAR) == base.get(Calendar.YEAR)
				&& toCompare.get(Calendar.MONTH) == base.get(Calendar.MONTH)
				&& toCompare.get(Calendar.DAY_OF_MONTH) == base
						.get(Calendar.DAY_OF_MONTH))
		{
			result = 0;
		}
		else
		{
			result = 1;
		}
		
		return result;
	}