Simple check to see if two time periods overlap //src - https://stackoverflow.com/a/13513973 bool overlap = a.start < b.end && b.start < a.end; #date