Re: Dates and time zones
- From: "Cesar Ronchese" <ronchese_hotmail_dot_com>
- Date: Mon, 12 Dec 2005 11:55:22 -0300
I'm using VB.Net 2003.
The date is typed in a textbox and stored in a column (date datatype) in a
datatable, and further stored in a SQL Server database (also date datatype).
I checked via Query Analyzer and the date is correctly stored. So, when I
show that date in another machine, the problem occurs.
The date typed is 01/01/2006, although it happens with every date I save.
"Armin Zingler" <az.nospam@xxxxxxxxxx> wrote in message
news:umPyTDy$FHA.356@xxxxxxxxxxxxxxxxxxxxxxx
> "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
>
.
- Follow-Ups:
- Re: Dates and time zones
- From: Armin Zingler
- Re: Dates and time zones
- References:
- Dates and time zones
- From: Cesar Ronchese
- Re: Dates and time zones
- From: Armin Zingler
- Dates and time zones
- Prev by Date: ControlCollection sequence?
- Next by Date: Re: Dates and time zones
- Previous by thread: Re: Dates and time zones
- Next by thread: Re: Dates and time zones
- Index(es):
Relevant Pages
|