DateTime.ToString removes slashes
This question already has an answer here:
你可能需要为你的字符串提供一种文化。
DateTime.ToString("dd/MM/yyyy", CultureInfo.InvariantCulture);
逃避斜线:
var result = MyDateTime.ToString("dd'/'MM'/'yyyy");
链接地址: http://www.djcxy.com/p/75114.html