Hi Team,
I want to get the timezone and that should be in PST timezone. Share me the code please.
Thanks
Hi Team,
I want to get the timezone and that should be in PST timezone. Share me the code please.
Thanks
Hi @Honda,
Please do below:
System.TimeZoneInfo.ConvertTime(Now,System.TimeZoneInfo.FindSystemTimeZoneById(“Pacific Standard Time”))
Regards
Sonali
Hey @Honda
try this:
TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, "Pacific Standard Time")
Hi @Honda
Try to Use Assign activity
pstTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById(“Pacific Standard Time”))
Use pstTime.ToString(“yyyy-MM-dd HH:mm:ss”) to get formatted PST datetime.
If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath
Thanks, it worked perfectly
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.