| Author |
TimeZone Date convertion
|
Joao Cunha
Greenhorn
Joined: Jul 12, 2004
Posts: 24
|
|
Hi folks! I want to convert a Date from an specific TimeZone to GMT-00:00 timezone I already tried to set a Calendar with the date and set the Time Zone but it didn't work... Any idea? Thanks!
|
 |
Nathaniel Stoddard
Ranch Hand
Joined: May 29, 2003
Posts: 1258
|
|
|
How did it not work? How about giving some code that shows ...
|
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
|
 |
Joao Cunha
Greenhorn
Joined: Jul 12, 2004
Posts: 24
|
|
Initially I have a time on an specif TimeZone: > Calendar c = Calendar.getInstance(); > c.setTime(date); > System.out.println(c.getTime()); I want to have this time on GMT-00:00 time zone. I tried this, but it didn't work: >c.setTimeZone(TimeZone.getTimeZone("GMT-00:00")); >System.out.println(c.getTime());
|
 |
 |
|
|
subject: TimeZone Date convertion
|
|
|