@xuxu88 , i didnt regard hours (time) of delivery/pickup, because it was enough to sort orders by only dates. So i’ve appended my code into this condition (for pickup):
if(isset($_POST['pickupDate'])) {}
And for delivery type (not pickup), ive added my code into this condition:
if(isset($_POST[‘date’])) {}