TimeZone timeZone1 = TimeZone.getTimeZone("America/Los_Angeles");
TimeZone timeZone2 = TimeZone.getTimeZone("Europe/Copenhagen");
Calendar calendar = new GregorianCalendar(timeZone1);
System.out.println("Time in LA: "+calendar.getTime());
I run this code but it is not working and giving me the current time in current time zone.