Question by
DamianoDamiano · Aug 31, 2015 at 07:17 PM ·
time
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!
Comment
Best Answer
Answer by DoTA_KAMIKADzE · Aug 31, 2015 at 07:19 PM
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.
Your answer