Get short name (CST) of timezone by using TimeZoneSidKey(America/Chicago) [closed]

587    Asked by CsabaToth in Salesforce , Asked on Apr 23, 2021

 I wanted to display CST instead (America/Chicago) in the view. I have a TimeZoneSidKey But not sure how to get the Short Name CST timezone by using the TimeZoneSidKey .

Answered by Dorine Hankey

Salesforce Timezone class won't provide you what you are looking for and rightfully so because short names are different depending upon the dates. They show CDT vs CST timezone (Daylight Time vs Standard Time). Also, America/Phoenix has two different timezones depending on which day you are referencing to. Static map of values wont work either.



Your Answer

Interviews

Parent Categories