ajscott911
New Member
- Joined
- Sep 19, 2006
- Messages
- 20
here's the last issue I'm hoping someone will have an answer for.
in Javascript DateVar.setUTCFullYear(*datecoding*) will set the DateVar to the current users time {based on the users time zone} assuming that *datecoding* is the current time UTC ((IE. if it were noon UTC time it would be 7am Eastern time because Eastern time is -5 hours behind UTC))
Is there a way to do the same thing in VBA without making your own function or barring that, what would an appropriate function look like? I'm trying to make this all automatic without any input from the user telling the function which timezone they are in.
if someone could come up with a custom function that took in an UTC date and fed out a converted time to the users current time zone it would be very helpful.
Adam
in Javascript DateVar.setUTCFullYear(*datecoding*) will set the DateVar to the current users time {based on the users time zone} assuming that *datecoding* is the current time UTC ((IE. if it were noon UTC time it would be 7am Eastern time because Eastern time is -5 hours behind UTC))
Is there a way to do the same thing in VBA without making your own function or barring that, what would an appropriate function look like? I'm trying to make this all automatic without any input from the user telling the function which timezone they are in.
if someone could come up with a custom function that took in an UTC date and fed out a converted time to the users current time zone it would be very helpful.
Adam