小技巧

把当前日期转换成指定格式:

DateTime.Now.ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo)

posted @ 2011-12-14 10:57  勇气  阅读(172)  评论(0编辑  收藏  举报