标签:完全 中转 time pre conf not nbsp col ring
在cshtml中转换的日期格式错误,前端报错:The specified value "2019-1-2" does not conform to the required format, "yyyy-MM-dd"
由于时间格式没有完全匹配,"yyyy-MM-dd"应该对应"2019-01-02"
string.Format("{0:yyyy-MM-dd}", DateTime.Now);
The specified value "2019-1-2" does not conform to the required format, "yyyy-MM-dd"
标签:完全 中转 time pre conf not nbsp col ring
原文地址:https://www.cnblogs.com/gangler/p/10207339.html