I have an operation. I need to compare the starttime and the endtime in the database. Now I need to write a loop to judge the date list. This is the logic of existing single dat