请问将string 中的yyyy-MM-dd 转换成日期类型dd-MM-yyyy 要怎么做?
谢谢!
------解决方案--------------------------------------------------------
DateTime time = DateTime.Now;
Response.Write(time.ToString("dd-MM-yyyy"))
------解决方案--------------------------------------------------------
- C# code
string date = "2007-01-25";date = Convert.ToDateTime(date).ToString("dd-MM-yyyy");