You can’t do this. It’ll never equal just a date. Internally, 2023-05-29 will be treated as 2023-05-29 00:00:00 so the email would have to be received at exactly midnight to match 2023-05-29. You have to do the gt/lt like you did in the second option.
Hi! Sorry for late reply. I got the idea for my answer from the link sent by postwick. I recommend you to check it first to fit with your requirement/s.
I did mine like
"contains(subject, 'Success Report') AND receivedDateTime ge " + datetime.Now.AddDays(-1).tostring("yyyy-MM-dd")
Since I’m only running this once daily. I just put the previous previous date(yesterday) as the reference for the greater than value of the receivedDateTime