Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试从服务器发送日期时出现错误,因为它有下一个表单:
2013/02/21
当我从客户端发送日期时,它发送没有问题,因为它具有下一种形式:
2013-02-21
我需要更改服务器属性或代码中的分隔符,但我不知道如何。
如果您使用发送日期,ToString则可以指定格式:
ToString
string str = yourDateObject.ToString("yyyy-MM-dd");