特殊String类型转换为DateTime类型并获得时间差。
摘要:
using System;using System.Globalization;namespace DateTimeDemo{ class Program { static void Main(string[] args) { DateTime oldDt = new DateTime(); DateTime newDt = new DateTime(); string oldTime = "20100708124513"; string newTime = "201... 阅读全文
posted @ 2012-01-18 23:53 ugoa 阅读(279) 评论(0) 推荐(0)