Select Timezone


Our remote desktop is in Canada Timezone. And it can’t be changed. How should I put the my correct timezone in the script (Philippine Time)

Hi You can use the dotnet inbuilt function:
Get the destination correct timezone :
tzinfoDestination=TimeZoneInfo.FindSystemTimeZoneById(“Taipei Standard Time”)
Convert to the timezone:
tzDestinationDateTime = imeZoneInfo.ConvertTime(DateTime.Now,TimeZoneInfo.Local,tzinfoDestination)

You can also find the list of timezones by looping thro: TimeZoneInfo.GetSystemTimeZones
Argument type for the loop would be: System.TimeZoneInfo

1 Like

Hello @suraj3501 -

How do I put it in the script? I’m sorry. I’m new to uipath. And i don’t know how to arrange it in the uipath studio :frowning:

I have to type the month , day and year. These are now correct. However, the date that the bot is finding is in Canada date and time.

Here is xaml. You just needs to Pass an arguments to it and it will give out the DateTime for you from the destination timezone.
ChangeTimeZone.xaml (5.5 KB)

1 Like

Hello @suraj3501

It says that my timezone was not found on the local computer :frowning:


Here is the list of timezone you can add.output.txt (7.5 KB)

Thanks, @suraj3501! :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.