按照日期生成编号

string times = Convert.ToString(string.Format("{0:yyyy%M%d%H%m%s}", DateTime.Now));
原文地址:https://www.cnblogs.com/dotnetHui/p/8052886.html