Skip to main content

Microsoft Silverlight

Answered Question DateTime serialization problemRSS Feed

(0)

clement_911
clement_911

Member

Member

4 points

25 Posts

DateTime serialization problem

Hi Ria Services expert.

I noticed that when my silverlight client calls a Get domain service method with a DateTime argument, the DateTime.Milliseconds field is lost (resetted to zero). Also the DateTime.Kind is resetted to Unknown whereas it was Utc when the client called.

 

Is that a known issue

sladapter
sladapter

All-Star

All-Star

17441 points

3,172 Posts

Re: DateTime serialization problem

No, I just tested in my code. The .Milliseconds and .Kind in Silverlight side have the correct value as in the Server side.

Oh,  do you mean to pass the DateTime value back to server? I only tested passing data from Server to Client.

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

clement_911
clement_911

Member

Member

4 points

25 Posts

Re: DateTime serialization problem

Yes I mean from client to server.

sladapter
sladapter

All-Star

All-Star

17441 points

3,172 Posts

Answered Question

Re: DateTime serialization problem

Yes, I can confirm your finding. The Date value passed as query function parameter lost milliseconds and kind value on the server side. But Date value in the data Entity holds the correct value in both ways.

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

clement_911
clement_911

Member

Member

4 points

25 Posts

Re: DateTime serialization problem

Thanks.

I hope someone from the RIA services team acknowledges the problem so that it gets fixed.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities