Hello ,
When I’m trying to obtain the complete date with the time offset, it always returns the “zzz” of my local time.
A picture is worth a thousand words:
The line code that I am using: System.TimeZoneInfo.ConvertTime(Now,System.TimeZoneInfo.FindSystemTimeZoneById(“Sri Lanka Standard Time”)).ToString(“dd.MM.yyyy HH:mm:ss zzz”)
What do I hope to get?
Tokyo Standard Time +09:00 “28.11.2023 05:41:46 +09:00”
Sri Lanka Standard Time +05:30 “28.11.2023 02:51:46 +05:30”
Central Europe Standard Time +01:00 “28.11.2023 10:24:46 +01:00”
SA Pacific Standard Time -05:00 “28.11.2023 04:41:46 -05:00”
Thank you very much for the help you can give me