I’m having the same problem. My date format is MM/dd/yyyy. How do i find out the date format in my system and change it with code.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should set proper culture for a current thread. DateTime.Parse uses date settings from culture of current thread (btw, I love you, Reflector!):
where “DateTimeFormatInfo.CurrentInfo” is:
There are a lot of how-to about globalisation, just try to search them ( example of such how-to :))