C#獲取指定格式日期

DateTime dt = DateTime.Now;
Console.WriteLine(dt.ToString("yyyy-MM-dd HH:MM:ss"));
原文地址:https://www.cnblogs.com/buy0769/p/3976417.html