Is it possible to get only the last 30 days of posts?

Hi everyone, this question is repeated but the other answer is not working for me for some reason.

I’m trying to only fetch the last 30 days of posts, and doing so as it is mentioned in this post, but it’s not working, it still fetches all the posts

this is what I got


I actually would like it to be by published date if possible.

Can anyone give me a hand please

Thank you In advance