Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Java in General
TimeZone Date convertion
Joao Cunha
Greenhorn
Posts: 24
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 1258
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 24
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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());
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
setting Timezone for web application
how to get user defined timezone using XMLGregorianCalendar.
calendar to date and timezone
Time Zone Conversion of a String
Working with dates, timezones, zulu
More...