02 2010 档案

C# 字符串 与 DateTime的转换
摘要:string time = "110018";//时间字符串 string span = "53"; int span2 = 530; DateTime dt1 = DateTime.ParseExact(time, "HHmmss", null); DateTime dt2 = DateTime.ParseExact(span, "mm", null); TimeSpan sp1 = new ... 阅读全文

posted @ 2010-02-22 16:12 pjh123 阅读(493) 评论(0) 推荐(0)