Issue
I want to get the time zone of the mobile phone's time.
How can I make it?
I am using Xamarin to implement APP in both android / iOS
What I want is to get such as "GMT+8". Not country name.
Solution
Try this:
TimeSpan ts = new DateTimeOffset(DateTime.Now).Offset;
Answered By - Joaquim Junior
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.