Home All Groups Group Topic Archive Search About

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

Author
10 Mar 2006 8:05 PM
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.

Author
10 Mar 2006 8:58 PM
Armin Zingler
"XML newbie: Urgent pls help!"
<XMLnewbieUrgentplsh***@discussions.microsoft.com> schrieb
> 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