2012年12月10日

C# 把字符串类型日期转换为日期类型

摘要: 方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss================================================方法二:Convert.ToDateTime(string, IFormatProvider)DateTime dt;DateTimeFormatInfo dtFormat = new System.GlobalizationDateTimeFormatInfo();dtFormat.ShortDatePattern = "yyyy/MM/dd";dt 阅读全文

posted @ 2012-12-10 12:07 空白画映 阅读(22113) 评论(0) 推荐(2)

导航