C
Cameron
I accept a date from a user in a textbox, but I need to convert it to a DateTime.
I have the following code:
return DateTime.ParseExact("01/10/2003", "dd/MM/yyyy", new CultureInfo("en-GB"));
When I run it on my development PC it's fine - I get 1st October 2003.
When I run it from my webserver it doesn't work - I get 10th January 2003.
I don't understand why - can anyone help?
I have the following code:
return DateTime.ParseExact("01/10/2003", "dd/MM/yyyy", new CultureInfo("en-GB"));
When I run it on my development PC it's fine - I get 1st October 2003.
When I run it from my webserver it doesn't work - I get 10th January 2003.
I don't understand why - can anyone help?