Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date formats in c#
Message
From
09/02/2012 03:39:37
 
 
To
08/02/2012 14:03:01
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01534833
Message ID:
01534952
Views:
52
>>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 ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform