Are those two elements saved to dataset1? If they are you could filter
Element 1 >= today midnight
Element 2 < midnight tomorrow

If not then the filter would be similar to your current setup.