C# 怎么把 2012/4/12 0:00:00 变成 2012-04-12 ?谢谢~[解决办法] string str = "2012/4/12 0:00:00"; string result = Convert.ToDateTime(str).ToString("yyyy-MM-dd");