stealther

2010年5月3日

C#格式字符串

摘要: 时间格式化有时候我们要对时间进行转换,达到不同的显示效果  默认格式为:2005-6-6 14:33:34  如果要换成成200506,06-2005,2005-6-6或更多的该怎么办呢  我们要用到:DateTime.ToString的方法(String, IFormatProvider)    using System;  using System.Globalization;  String... 阅读全文

posted @ 2010-05-03 15:33 stealther 阅读(2029) 评论(0) 推荐(0) 编辑

导航