2013年10月29日

C# 日期转换函数

摘要: string.Format("{0:d}",dt);//2005-11-5 string.Format("{0:D}",dt);//2005年11月5日 string.Format("{0:f}",dt);//2005年11月5日 14:23 string.Format("{0:F}",dt);//2005年11月5日 14:23:23 string.Format("{0:g}",dt);//2005-11-5 14:23 string.Format("{0:G}",dt); 阅读全文

posted @ 2013-10-29 12:29 chens2865 阅读(161) 评论(0) 推荐(0) 编辑

导航