private string GetCurrentDateTime() { return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss "); }如果想显示毫秒的话, format 里面添加 为"yyyy-MM-dd HH:mm:ss.fff "