webservice中DateTime类型参数的传入问题

时间:2014-08-10 06:03:39   收藏:0   阅读:555

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 DateTime and Date values of DataTable columns are written in the XSD DateTime and Dateformats when the DataSet is saved as XML. The standard XSD DateTime and Date formats are CCYY-MM-DDThh:mm:ss and CCYY-MM-DD, respectively, because the underlying XSD schema of the DataSet maps the DateTime and Date columns of the database to the DateTime and XSD Date data types. 

如上微软官方原文,日期和时间之间要用T连接,不然不能识别。

安卓和ios开发时都要注意这问题。


webservice中DateTime类型参数的传入问题,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!