Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date formats in c#
Message
De
09/02/2012 03:39:37
 
 
À
08/02/2012 14:03:01
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01534833
Message ID:
01534952
Vues:
50
>>Hi.
>>
>>VFP
>>x={^2011-05-10} ALWAYS returns 10th May 2011 no matter what the culture is
>>
>>C#
>>dateValue = DateTime.Parse("2011-05-10");
>> Does this ALWAYS return 10th May, 2011 or are there instances when I could get 5th October 2011 ?
>> If so, can it be made unambiguous , similar to the ^ in VFP
>>Tia
>>Gerard
>
>Don't parse
>
>
>	DateTime dt = new  DateTime(2011, 05, 10);
>	Console.WriteLine(" {0}", dt);
>
>	Console.ReadLine();
>
Wasn't Gerard wanting to convert a string to a DateTime ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform