RickPutnam
Thu Oct 20 19:26:04 CDT 2005
Yea, that's basically what I did. I was hoping there was an api I could use
rather than my own lookup for the offsets. Marc S, 1 response below, points
to a project at CodeProject that uses the registry.
Thanks.
"William Stacey [MVP]" wrote:
> Why couldn't you take the time as a local time, convert that to UTC and then
> +- the given timezone (as int)?
>
> --
> William Stacey [MVP]
>
> "David Levine" <noSpam12dlevineNNTP2@wi.rr.com> wrote in message
> news:eLDKQjQ1FHA.3376@TK2MSFTNGP14.phx.gbl...
> > Can you change the timezone of the local machine to the one you want, do
> > the conversion, and then change it back again? I have no idea what side
> > effects this would cause (probably a bunch) but it might be a workaround.
> >
> >
> > "Rick Putnam" <RickPutnam@discussions.microsoft.com> wrote in message
> > news:79813631-B990-48E2-9F12-04BCA5930E7C@microsoft.com...
> >> Not supported in the framework according to this FAQ article:
> >>
> >>
http://msdn.microsoft.com/netframework/programming/bcl/faq/DateAndTimeFAQ.aspx#Question6
> >>
> >> What now?
> >>
> >> "Rick Putnam" wrote:
> >>
> >>> My application receives a date/time field and a timezone code such as
> >>> "EDT"
> >>> from a database. I need to convert the date/time to UTC using the
> >>> timezone.
> >>> The timezone can be from anywhere on the globe.
> >>>
> >>> TIA.
> >
> >
>
>
>