#region Tools
        public static string ForMatDateTime(DateTime dt, string formatStr)
        {
            return string.Format("{0:" + formatStr + "}", dt);
        }

        //补0
        public static string PadLeft(string values, int count)
        {
            return values.PadLeft(count, '0');
        }
        #endregion

 


Utils.ForMatDateTime(DateTime.Now, "yyyyMMddHHmmssffff");

 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2021-08-28
  • 2021-11-24
  • 2021-10-19
  • 2021-11-08
猜你喜欢
  • 2022-02-22
  • 2021-07-28
  • 2021-06-11
  • 2021-07-03
  • 2021-11-16
相关资源
相似解决方案