摘要: C#中并没有表示时间的变量,只有DateTime,所以要表示时间,可以用TimeSpan表示。 方法一:Convert.ToDateTime(string) string格式有要求,必须是yyyy-MM-dd hh:mm:ss 方法二:Convert.ToDateTime(string, IForm 阅读全文
posted @ 2016-08-24 16:31 wenglabs 阅读(5606) 评论(0) 推荐(0)