Get short name (CST) of timezone by using TimeZoneSidKey(America/Chicago) [closed]
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 .
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.