摘要: 1.y代表年份 M表示月份 d表示日期 h或H表示小时,h用的是12小时制,H用的是24小时制 m表示分钟 s表示秒 Convert.ToDateTime("2011-11-20 19:05:34").ToString(format); format:'yyyy-MM-dd' 2011-11-20format:'MM-dd-yyyy' 11-20-2011format:'dd-MM-yyyy' 20-11-2011format:'yyyy-MM-dd hh:mm:ss' 2011-11-20 07:05:34f 阅读全文
posted @ 2011-11-22 19:06 sulin 阅读(221) 评论(0) 推荐(0)