How to get Timezone in VBA (for Excel)?

  • Thread starter Thread starter Devangi Gandhi
  • Start date Start date
D

Devangi Gandhi

Hi,

I need to figure out how to capture the timezone setting
for the local machine and then convert it to GMT? Any
tips on how to do this, with considerations for Daylight
savings time etc...

Thanks!
 
Hi Chip,

The converttoGMT function you have provided only converts the time
portion to GMT, but it does not convert the date.

E.g. Now = 7/31/2003 13:47
and if I do converttoGMT(7/31/2003 13:47) I get 18:47:10, I don't get
the date portion 7/31/2003...

I am new to Excel VBA programming and if youcan help me here I'd greatly
appreciate that...

Thanks,
Devangi.
 
Back
Top