0

I want to create a test app in Xamarin.forms which will show different time for different countries(India, Uk, USA..).

I tried to use something like this:

TimeZoneInfo.FindSystemTimeZoneById

But doesn't work I get error:

Error   2   'System.TimeZoneInfo' does not contain a definition for 'FindSystemTimeZoneById'

I have buttons for different countries and as per what user clicks I want to show him the current time of that country. How do I do that?

Arti
  • 2,993
  • 11
  • 68
  • 121

1 Answers1

0

Have you tried this? :

TimeZoneInfo.ConvertTimeFromUtc(mytime,TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"));

From this thread? Current Time of Timezone

Community
  • 1
  • 1
Tamás Szabó
  • 1,388
  • 11
  • 23