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?
R – how to get datetime in silverlight
silverlight-2.0
Related Topic
- C# – Thoughts about using Silverlight In Desktop Apps
- R – Can you build an entire application in Silverlight
- R – What all do I have to have to start learning Silverlight 2 for free
- C# – How is the Parent property of a FrameworkElement set in Silverlight
- Can Silverlight initiate Page Refreshes
- R – How to use sockets in Silverlight 2
- C# – Binary serialization of Silverlight XAML object
- R – Silverlight: Access client desktop- Display properties
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.