fdssdfa

导航

2007年3月26日 #

时间格式转换(转)

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

posted @ 2007-03-26 21:47 dfsafdas 阅读(303) 评论(0) 推荐(0) 编辑