cast the start and end dates to integers