Dino
Dino

Reputation: 309

How can I set the time in my Windows Phone 8 application?

How can I set the device's system time in my Windows Phone 8 application, using C#?

Upvotes: 0

Views: 657

Answers (2)

Tim_Mac
Tim_Mac

Reputation: 166

even if you developer unlock all the phones, or run it as a company app bypassing the store, you still can't change the system time. in apps where i require an accurate device time, if the network is available, i compare the device date/time with a server date/time via a web service method, and then if the time is out by more than some limit, block the user from continuing until they correct their device time. Be aware of time zone issues if you are doing this.

Upvotes: 0

Kajal Sinha
Kajal Sinha

Reputation: 1565

If you are looking to update the system date time then You cannot set the "System DateTime" of your windows phone device. The API is not exposed/supported by the SDK.

Upvotes: 2

Related Questions