Updated getting orders by date