Anjali S Sharma wrote:In my Java code, I am getting Time in GMT
Date recDateObj = getGMTDate();
Can you please let me know how I can convert this time to one in EDT time zone.
java.util.Date object have no explicit time zone. They have an implicit time zone of UTC since they hold only the number of milliseconds since 1/1/1970 UTC (the epoch). All date helper classes such as SimpleDateFormat assume this epoch and calculate accordingly..
If you need a
String representation of the date then
you should use SimpleDateFormat and initialise it with the desired time zone.