I have silverlight application. When using DateTime.Now it gives me the client datetime. In this way the client can change his time on whatever he wants. I want to be sure that datetime comes from server. What I want is to give me the server datetime. Any ideas how this can be accomplish ?
You can make a call to the web service or an api to get a server DateTime. On the server if you use DateTime.Now it will give you the datetime of the server time zone. You can also use DateTime.UtcNow to get Universal Time.
Asked in February 2016Viewed 1,884 timesVoted 4Answered 1 times