Code
public String testDate(){ TimeZone.setDefault(TimeZone.getTimeZone(\"US/Eastern\")); Calendar fromDate = Calendar.getInstance(
Typically, you get a TimeZone using getDefault which creates a TimeZone based on the time zone where the program is running. For example, for a program running in Japan, getDefault creates a TimeZone object based on Japanese Standard Time.
TimeZone
getDefault
Check TimeZone for more