Convert string to DateTime in .NET 2.0
string myDate = "20060628183000";
DateTime dt = new DateTime();
dt = DateTime.ParseExact(myDate, "yyyyMMddHHmmss",
System.Globalization.DateTimeFormatInfo.CurrentInfo);
找半天才找到...
DateTime dt = new DateTime();
dt = DateTime.ParseExact(myDate, "yyyyMMddHHmmss",
System.Globalization.DateTimeFormatInfo.CurrentInfo);
找半天才找到...
留言