Convert local time(eg EST) on local machine to GMT

G

Guest

How to Convert local time(eg EST) on local machine to GMT. I am using VB.Net
2005.

Then I need to subtract 1 minute(or 1-100) minute selected by the user in
the combobox and pass it as start time to the query.

I thanku all in advance.
 
A

Armin Zingler

"XML newbie: Urgent pls help!"
How to Convert local time(eg EST) on local machine to GMT. I am
using VB.Net 2005.

Then I need to subtract 1 minute(or 1-100) minute selected by the
user in the combobox and pass it as start time to the query.

I thanku all in advance.


dim dt as datetime

dt = datetime.now.touniversaltime.addminutes(-1)

Local time 03:00 pm (-06:00) will result in 08:59 pm



Armin
 

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