string times = Convert.ToString(string.Format("{0:yyyy%M%d%H%m%s}", DateTime.Now));
按照日期生成编号
原文:http://www.cnblogs.com/dotnetHui/p/8052886.html