I need only 24 hours mail from gmail

Hi Team,
Please let me know,
how to apply filter to Get Imap Mail Message, So it will filter only within 24 hour mails
I have applied this below expression but didn’ work

1 Like

Hi @Rounak_Kumar1 ,

Try this

"UNSEEN SINCE \"1 day ago\""

Thanks,

@Rounak_Kumar1

Imap does not have the time filter with it…

But you can get using date only…if you want only messages received today then you can give

"SINCE """ + Now.ToString("dd-MMM-yyyy") + """

Cheers

Hi @Rounak_Kumar1

Please try the below FilterOption

“[Received] >= '” + DateTime.Now.AddDays(-1).ToString(“dd-MMM-yyyy”) + “'”