Added check to reject items which have a startdate after the enddate.

Signed-off-by: Michel Verbraak <info@1st-setup.nl>