A
ad
I have a string
string dd="1992/12/03",
How to convert dd to DateTime type?
string dd="1992/12/03",
How to convert dd to DateTime type?
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);
HTH, Cheers
Maqsood Ahmed [MCP,C#]
Kolachi Advanced Technologies
http://www.kolachi.net