Get GMT or UTC from message

R

Ryan

I’m looking for a way to get the GMT or UTC time from an email message; or possibly find the time zone from where the email was sent

I know how to get the “Sent Time†from the Outlook MAPI interface. This however is the time from the client machine the email was sent from or the time from the Exchange server if they are connected to an Exchange Server through Outlook

My first thought is find the GMT or UTC. If that information is not available I would then look for the time zone then use the DateAdd function to find the GMT time

Any help with this would be greatly appreciated
 
K

Ken Slovak - [MVP - Outlook]

There are a couple of ways to do this. If you are using CDO 1.21 code you
can use the Session.GetOptions("TimeZone") method to get the time zone as a
Long value that corresponds to an enum defined for CDO.

The local time zone information is also stored in the Windows registry.
Take a look at this MS KB article, it has more information:
http://support.microsoft.com/support/kb/articles/q221/5/42.asp




Ryan said:
I'm looking for a way to get the GMT or UTC time from an email message; or
possibly find the time zone from where the email was sent.
I know how to get the "Sent Time" from the Outlook MAPI interface. This
however is the time from the client machine the email was sent from or the
time from the Exchange server if they are connected to an Exchange Server
through Outlook.
My first thought is find the GMT or UTC. If that information is not
available I would then look for the time zone then use the DateAdd function
to find the GMT time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top