Get country and timestamp for the current location

前端 未结 1 1137
离开以前
离开以前 2021-01-22 22:06

I want to know where my application is used.

Here is the code for getting the country name:

public string Country = RegionInfo.CurrentRegion.DisplayName         


        
1条回答
  •  广开言路
    2021-01-22 22:25

    TimeZone.CurrentTimeZone property returns information from your current PC. So, you can change your date and timezone and check:

    0 讨论(0)
提交回复
热议问题