private string GetCurrentDateTime()
        {
            return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss ");
        }

 如果想显示毫秒的话, format 里面添加 为 

"yyyy-MM-dd HH:mm:ss.fff "

相关文章:

  • 2021-08-17
  • 2021-06-23
  • 2021-12-18
  • 2021-11-14
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案