Get Dates to group orders

Get all the order for a certain time period to compare with the payment from the selected delivery service.