Device time

Hi, i’m developing an app for android (maybe apple and wp), and i would like to know if there is a way to know what is the device time. I mean: if a call this function, it give me back the device time (ex: 8:05 pm)
Thanks!

Use System.DateTime for that. Should work on all platforms.

You can use System.DateTime.Now with ToString pattern of your choice, or use individual parts and compose, it’s up to you.