在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
public string GetMsgID() { Random rand = new Random((int)DateTime.Now.Ticks); string szRand = rand.Next(0, 9999).ToString().PadLeft(4, '0'); return string.Format("{0}{1}", DateTime.Now.ToString("yyyyMMddHHmmss"), szRand); }
public string GetMsgID()
{
Random rand = new Random((int)DateTime.Now.Ticks);
string szRand = rand.Next(0, 9999).ToString().PadLeft(4, '0');
return string.Format("{0}{1}", DateTime.Now.ToString("yyyyMMddHHmmss"), szRand);
}
评论
请发表评论