Re: Dates and time zones



"Cesar Ronchese" <ronchese_hotmail_dot_com> schrieb
Hello!

I've built a program that show some dates to users. I got a problem
when users have different configured time zone machines, where:

- One machine that determined time zone the date displayed is
01/01/2006. - In other different machine (and other configured time
zone), the date displayed  is 12/31/2006 19:00:00

If I redefine the time zones of these two machines to the same, the
date works fine.

I think this: if the date is registered as 01/01/2006, it should be
showed as 01/01/2006, independent of fix it in CultureInfo class. Or I'm
wrong?

Why does this happen and how to resolve it?


Which version of VB do you use? 2003 or 2005? I ask because DateTime now has
a property 'Kind'. Apart from this: Where do you get the DateTime from? Where do you store it (type of variable)? How do you display it? What is the value in the variable?



Armin

.


Loading