@Override
	public void gatherElasticEffect(ElasticEffects effect, FilterAtom atom,
		IDElasticResolution resolution) throws ElasticException {
		LocalDate localDate = formatDate(atom.value);
		Date date =
			Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
		if (date == null) {
			return;
		}

		effect.addDocValue("ZonedDateTime date = doc['ingest_date'].value; ");
		String argName = effect.assignArgument();
		effect.addScriptElement(this, "ZonedDateTime.ofInstant(Instant.ofEpochMilli(params." +
			argName + "), ZoneId.of('Z')).compareTo(date) > 0");
		effect.addDateParam(argName, date);
	}
A BsimFilterType for filtering on functions in programs created before the filter date.
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/filters/DateEarlierBSimFilterType.java