Hi i developing a application in android. i need to use the Los Angeles (USA) location current time, date. For that I used the below code
Calendar calendar = Calendar.getInstance();
TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
calendar.setTimeZone(tz);
String s=calendar.getTime().toString();
But it is giving the current location time and date. Please provide a code to get the time and date by providing particular location name like Los Angeles.