WYB
2021-03-22 91b8cdad021ab052e4991f3d41834a6f0ddc36b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace JiepeiWMS.Common
{
    public class Utils
    {
        /// <summary>
        /// 返回新文件名,格式:年月日时分秒3位毫秒+5位随机码
        /// </summary>
        /// <returns></returns>
        public static string GetNewFileName()
        {
            var r = new Random();
            return DateTime.Now.ToString("yyyyMMddHHmmssfff" + r.Next(10000, 99999));
        }
 
   
    }
}