> Need to display the date of the customer, in accordance with its Time zone
>
> http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
> gift
Maybe this code helpful:
string dateString = DateTime.Now.ToString(
System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongDatePattern
);

Signature
Duy Lam Phuong
Alexander Vasilevsky - 03 Dec 2007 13:36 GMT
OK
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
gift
>> Need to display the date of the customer, in accordance with its Time
>> zone
[quoted text clipped - 7 lines]
> System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongDatePattern
> );
Eliyahu Goldin - 03 Dec 2007 13:54 GMT
You code runs on server. It has no knowledge about the client machine
timezone. You need to get in on client side with a javascript call
Date.getTimezoneOffset()";
the pass the value to server side in a hidden input control.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>> Need to display the date of the customer, in accordance with its Time
>> zone
[quoted text clipped - 7 lines]
> System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongDatePattern
> );
Mark Rae [MVP] - 03 Dec 2007 14:02 GMT
> string dateString = DateTime.Now.ToString(
> System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongDatePattern);
Only if the client and server happen to be in the same time zone...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Duy Lam - 11 Dec 2007 16:36 GMT
>> string dateString = DateTime.Now.ToString(
>> System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongDatePattern);
>
> Only if the client and server happen to be in the same time zone...
If Alexander want display date in browser, it certainly should use
javascript to do.
I'm sorry because i only think this require run on one machine although
this group is aspnet :-)

Signature
Duy Lam Phuong