Hi, I am developing an application in android. I need to use the current time, date in Los Angeles (USA). For this, I used the code below
Calendar calendar = Calendar.getInstance(); TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); calendar.setTimeZone(tz); String s=calendar.getTime().toString();
But it indicates the current location and date. Please provide the code to find out the time and date, indicating the exact name of the location, for example, Los Angeles.
android
raghumudem
source share