I was able to increment/decrement the hours, but I have run into I guess a technical problem. Why when I click on any zone, the correct time is displayed for the moment and it doesn't change. The seconds aren't moving, nothing changes unless I click the zone again?
: : Okay, thanks for your help, but I still seem to be running into problems. I have two text boxes, two combo boxes with time zones. When the user clicks a time zone from each cmb, the correct time for that area should appear in the corresponding boxes. I could not, using that function, add the hours such as GMT +1, GMT+2, etc, to adjust the time.
: :
:
: My time is GMT-6. If I put:
:
: MsgBox DateAdd("h", 6, Now)
:
: I will get the date and time for GMT because I added 6 to my time.
:
: What you need is to subtract their GMT time (mine is -6) and then add the new GMT time (or vice versa).
:
: For example, if I wanted to find my time in EST (GMT-5), I would use this:
:
: MsgBox DateAdd("h", -5 - -6, Now)
:
: And it shows my time plus one hour, which is correct.
:
:
: To help you more (if you need it), I have three questions:
: 1. Are the two sets (one textbox and one combobox) related in any way?
: 2. Do you know about the ItemData property?
: 3. What are the contents of your comboboxes? Is it just +1, +2, etc? Or is it like Windows' with several time zones duplicated?
: