Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date formats in c#
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01534833
Message ID:
01534836
Views:
69
>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

It will always return May because there is not such date format like ydm.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform