View Single Post
  #2  
Old January 4th 07, 06:29 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Converting date to UTC

Only in Outlook 2007 using the new TimeZones collection (returned by
Application.Timezones) or PropertyAccessor.LocalTimeToUTC (see
MailItem/Folder/Store/Attachment.PropertyAccessor property, local timezone
only).
plug Next version of Redemption will expose Timezones in all version of
Outlook and will allow to convert datetime from a given timezone to UTC
using RDOTimezone.LocalTimeToUTC (Outlook 2007 only allows to use
Timezones.ConvertTime with 2 time zones specified as parameters, but it does
not explicitly let you retrieve the UTC timezone) /plug

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"HolgerMaune" wrote in message
...
Is there any possibility in vba to convert a datetime from a know timezone
to
utc?



Ads