Re: Get GMT or UTC from message
From: Ken Slovak - [MVP - Outlook] (kenslovak_at_mvps.org)
Date: 04/07/04
- Next message: Ken Slovak - [MVP - Outlook]: "Re: feild to be filled by"
- Previous message: Ken Slovak - [MVP - Outlook]: "Re: How do I get the manager for my profile using Outlook Redemption"
- In reply to: Ryan: "Get GMT or UTC from message"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Apr 2004 10:18:41 -0400
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
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Ryan" <rschnieber@5ninegroup.com> wrote in message news:02D703E4-1D65-4967-9BAE-FD6A57D0C321@microsoft.com... > 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. >
- Next message: Ken Slovak - [MVP - Outlook]: "Re: feild to be filled by"
- Previous message: Ken Slovak - [MVP - Outlook]: "Re: How do I get the manager for my profile using Outlook Redemption"
- In reply to: Ryan: "Get GMT or UTC from message"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|