WCF Rest Service Date issue
Posted
by
Ranish
on Stack Overflow
See other posts from Stack Overflow
or by Ranish
Published on 2012-12-10T10:56:24Z
Indexed on
2012/12/18
11:03 UTC
Read the original article
Hit count: 124
I am working on a WCF Rest service for a iPhone application. I have a WebGet method which returns a “date time”. I am using following code
[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "GetDate")]
DateTime GetDate();
When I tried to call the method using Mozilla rest client I am able to get following result "/Date(1355116291037+0530)/"
But the problem is when this method consume from the iPhone side we are getting another date time value( there is around 5:30 hours difference) .
Any one have any idea regarding this issue,Please help me
Thanks in advance
© Stack Overflow or respective owner