How to get Timezone in VBA (for Excel)?

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!
 
D

Devangi Gandhi

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.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

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