R – how to get datetime in silverlight

silverlight-2.0

from title it appears a stupid question 🙂 i know but i have a silverlight application that needs to send datetime to a 3rdparty web method and based on datetime populate some client side controls… now i know how to get datetime from client but problem is that client time could be wrong……..
one method is to use a webservice to get datetime any other idea?

Best Answer

If you need the reliability of the server's time, then yeah -- a web service would suffice. I ran into a limitation with Silverlight recently that only a web service (WCF or otherwise) would solve. I chose an ordinary .NET web service for my scenario and when it was all said and done it worked like a charm.