DateTime dt = DateTime.Now; TextBox1.Text = dt.ToString("yyyy-MM-dd"); 转载于:https://www.cnblogs.com/xusy/p/4832367.html