I am trying to get Outlook emails using the ‘Get Outlook Mail Messages’ activity. My requirement is to get all emails for a particular day.
For example, if the current date is 05/21/2020, I need to get emails that were received on 05/20/2020.
I tried to use Filter as given below
"[ReceivedTime] >'"+Now.AddDays(-2).ToShortDateString+"' AND [ReceivedTime] <'"+Now.ToShortDateString+"'"
However this includes emails received on 05/21/2020 as well.
So my question is how to get all emails for the day - current date?