C#------DateTime自定义格式时间:2024-10-20 10:05:14 var text = Convert.ToString(DateTime.Now.ToString("yyyy/MM/dd"));