This step-by-step article describes how to format DateTime and Date values in the XML that is extracted from an ADO.NETDataSet object. In ADO.NET,the values of DataTable columns are written in the XSD formats when the is saved as XML. The standard XSD formats are CCYY-MM-DDThh:mm:ss and CCYY-MM-DD,respectively,because the underlying XSD schema of the maps the columns of the database to the and XSD data types.
如上微软官方原文,日期和时间之间要用T连接,不然不能识别。
安卓和ios开发时都要注意这问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。