public boolean dateCompare(Certificate certificate)
	{
		DateFormat date = new SimpleDateFormat("dd/MM/yyyy");
		Calendar cal = Calendar.getInstance();
		String todaysDate = date.format(cal.getTime());
		int[] checkDates = stringToDateArray(todaysDate);
		int[] validFrom = stringToDateArray(validityFrom);
		int[] validTo = stringToDateArray(validityTo);
		if (before(checkDates, validTo) && !before(checkDates, validFrom))
			return true;
		else
			return false;
	}