Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying local DateTime when bound to UTC DateTime
Message
 
 
À
06/11/2008 17:25:51
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01360349
Message ID:
01360370
Vues:
12
>Hi All,
>
>I am having a problem with dates as in my other post. I am contemplating changing my date storage to UTC with either:
>
>DateTime setDate = DateTime.Now.ToUniversalTime();
>or
>DateTime setDate = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
>
>
>My question is this: I have this data used on a web application where a user logs in and views this data initially in a GridView. I would need to display the DateTime information as Local time to the session user. How can I display it in a GridView as Local time? How do I determine the timezone of the current session user?
>
>Thanks a bunch
>Tim

Hi Tim,

I assume you read this article, correct http://aspnet.4guysfromrolla.com/articles/081507-1.aspx ?

Also quick google search brought this http://forums.asp.net/p/434089/434089.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform