(Fri, 11 Jan 2019 16:33:46 +0800
Refer this post
Gets the time when the build time is not the receive time
I want to have receive time
But it not the receive time
I know this is quite a late response but I think it will serve some purpose for others.
The answer is to first extract the date from the email as a DateTime variable type with EmailReceiveTime = CDate(mail.Headers(“Date”)), and then simply covert that received date into the time format you need, like this: EmailTime = TimeEmailReceived.ToString(“HH:mm”) … Please note that the variable “EmailTime” is a string, not a date.
This will give it to you as displayed on the email, e.g 10:30
It also gives 24 hour time.
That should help you !!