I created a C # WinForms application.
The following works on my computer:
DateTime.ParseExact("13/05/2012", "dd/mm/yyyy", null)
but this is not so:
DateTime.Parse("13/05/2012")
On my client computers, this has changed. It works:
DateTime.Parse("13/05/2012")
but this is not so:
DateTime.ParseExact("13/05/2012", "dd/mm/yyyy", null)
Error:
String was not recognized as a valid DateTime.
Could not find any information on the Internet about this issue. The program uses .Net Framework 4 and is an x86 application. I am running Windows 8 x64, the client is running Windows 7 x64.
Does anyone know why this is happening?
Thanks.
source share