I have also used cDate(item.Headers(“Date”)) as well but not able to resolve this.
I am using IMAP activity to get the mails because my organization is using corporate Gmail and I can’t use outlook due to some restrictions.
Please help me on this. I am kind of stuck.
and place this in a Write Line or Message Box, which will show all items in the mail. If there is no date still after looking at all headers, then I am not sure off the top of my head. Also, apologies if I made a mistake with the code I suggested.
By the way, you can also run the Headers through a ForEach.
If you see a value that’s a date, then just use the index to it, like item.Headers(0).ToString