Need to get the shortform for Timezone

Hi Masters,
I created a timestamp that prints as “Monday, 05 Jul 2021 23:07:54 Eastern Standard Time”
And I require output as “Mon, 05 Jul 2021 23:07:54 EST”.
Any suggestions, please
Thanks in advance
Regards
Komal

Attaching screenshot for reference



Hi @komal.v.konduru

We have to split the timezone with space and get only the first letter from the wordings.

Split the time zone like this–> TimeZone.CurrentTimeZone.StandardName.Split(" "c)

Then get only the first letter from each wordings.

Thanks. Happy Automation

Thanks Vignesh

1 Like

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