C#将DateTime 类型与string 类型转换 Jan 15th, 2016 5:33 pm DateTime dt = DateTime.Now; string str = dt.ToString( "yyyy-MM-dd HH:mm:ss ");