Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date formats in c#
Message
De
09/02/2012 16:22:04
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01534833
Message ID:
01535032
Vues:
52
>Hi Craig, Tahks for the reply and I appreciate your forwarding me the link.
>The site deals with UTC and I cannot see definitievly there where you can get a date from a sting.
>
>On reading all the replies here, and chasing the links, following seems to be the best solution:
>
>--------------------------------------------------------------------------------
>DateTime dt = new DateTime(2011, 05, 10);
>--------------------------------------------------------------------------------

Of course, it's one of the constructors http://msdn.microsoft.com/en-us/library/xcfzdy4x.aspx

And this one should work as well - if you want to use strings Re: Date formats in c# Thread #1534833 Message #1535014



>WOULD everybody agree that this will ALWAYS, definitively, no matter what the LOCAL is, return 10th May, 2011 ??? (and not 5thOctober)
>
>If so, my question is answered, if not, I'll have to keep searching !!
>
>
>Regards,
>Gerard
>
>
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform