You can use DateTime.Parse(string) if the date is formatted in the default way as defined by your windows version. For me your date would caused an exception as DateTime on my system would have expected
03.12.1992.
Our solutions are locale independent and should work no matter what date format is default.
Thank,
I find there are nothing different if we do't give the info parameter.
What dose this parameter do?
Maqsood Ahmed said:
Hello,
System.Globalization.DateTimeFormatInfo info = new
System.Globalization.DateTimeFormatInfo();
info.ShortDatePattern = "yyyy/MM/dd";
DateTime dt = DateTime.Parse(dd,info);
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.