WCF Rest Service Date issue
- by Ranish
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