You can filter using “received: >=10/24/2022 AND received: <=10/28/2022”.
you can get the values from the dailog box and then do a concat like “receivd: >=” + value1 + “AND received: <=” + value2
Or Alternately get all mails and loop through and use if condition
cheers