My Input will be timezone
String timeZone = currentTimeZone.getID();
timezone = America/Los_Angeles
Out put should be the day belongs to that timezone .
Monday
Here is what I have tried so far.
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
Date datetime = new Date();
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Calcutta"));
System.out.println("Asia/Calcutta "+ sdf.format(datetime));