Currently, I am getting TimeZone in String. How can I convert it back to TimeZone ??
String timeZone = "Europe/Berlin"
How can I cast this to java.util.TimeZone
By using the getTimeZone
static method:
java.util.TimeZone.getTimeZone("Europe/Berlin")