日期转换成字符串

 string time = DateTime.Now.ToString("yyyy-MM-dd HH:mm");

原文地址:https://www.cnblogs.com/tiandi/p/2451709.html