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

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

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

原文:http://blog.csdn.net/ggbb190/article/details/38466339

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!