小技巧

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

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

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