Hi,
Im having some difficulty implementing 2 shifts.

For example. A person works from 8:00 - 16.00 on 10th of may
The next time a person enters a timespan from say 15.00 - 18.00 on the 10th of may , it should give an error. Because 15.00 - 16.00 he already worked.

It should also work with Crossdates if someone worked like 11th of may and also did a latenight shift on the 10th of may.

Does anyone know a thread that had the same problem cause ive searched the forum and not found any.

Is the Timespan.compare the answer to my problems?