Hi @JJK
You can try this.
create table test(ListDate datetime);
insert into test values
('2023-08-20'),
('2023-09-12'),
('2023-10-23'),
('2023-10-15'),
('2023-11-23'),
('2023-10-09'),
('2023-11-06');
select * from test
where ListDate >= DATEADD(day,-30,GETDATE()) and ListDate <= getdate();
Output:
Best regards,
Percy Tang