cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert string to TimeZone

Former Member
0 Kudos

Hi all,

Could you please tell me how to converty String ino TimeZone. I will award points to right answer.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Maruti,

Here is code to get TZ from id:


final String tzString = "EET";
final TimeZone tz = TimeZone.getTimeZone(tzString);

If you have other string format, please post example here.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi Valery Silaey,

Thank you for your answer. It works

Cheers

Maruti

Answers (0)