I need to display timezone in the following format in my UI.
(GMT -05:00) Eastern Time(US & Canada).
I tried getting the current time and timezone from calendar. But when i tried to get the display name from timezone it just displays as "Eastern time". I am not getting the format mentioned above. Can anyone help.
Following is my code snippet and i am using JDK 1.4.2.
Calendar c = Calendar.getInstance();
TimeZone tz = c.getTimeZone();
String s = tz.getDisplayName();