可以利用.NET中格式化字符串的方法转换!代码如下: string str = "2008-9-6" DateTime dt = DateTime.Parse(str); Response.Write(String.Format("{0:yyyy-MM-dd}", dt));