我想知道如何在UriTemplate中传递DateTime参数(即datatype=DateTime)
Url when creatin REST services ? example :if I want to pass date as 9/17/2012 in UriTemplate and serviceUrl then how to do it?发布于 2012-11-29 03:37:35
我唯一能够成功使用的日期格式是Unix Epoch格式。例如,要发送31Dec2012 05:00:00,我会发送1356930000000
如果你使用的是javascript,这是我们从日期变量的getTime()函数中得到的值:
var milliseconds = (new Date).getTime();WCF web服务接受此值并成功转换为datetime。
https://stackoverflow.com/questions/12457495
复制相似问题