Home Ask Login Register

Developers Planet

Your answer is one click away!

TheChampp February 2016

Get Server DateTime In Silverlight application

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 ?


M. Tovbin February 2016

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.

Post Status

Asked in February 2016
Viewed 1,884 times
Voted 4
Answered 1 times


Leave an answer

Quote of the day: live life