Filter in Email automation

While extracting the data from the body message in the mail,need to use filter options as “Subject & from Yesterday 6AM to Today 6AM(should use system variable as today based on that will calculate yesterday.)”

IF anyone can help me to solve these is really helpful.Thanks in advance

@sravan_risho - welcome to uipath community!

pls try below -
create a variables like - from_filter_time & to_filter_time
from_filter_time = System.DateTime.Now.AddDays(-1).ToShortDateString + " 06:00:00"
to_filter_time = System.DateTime.Today.ToShortDateString + " 06:00:00"

in get outlook mail activity - filter properties - add

“[ReceivedTime]>=’”+from_filter_time.ToString(“dd-MM-yyyy HH:mm:ss”)+“’” +“And”+“[ReceivedTime]<=’”+to_filter_time.ToString(“dd-MM-yyyy HH:mm:ss”)+“’”