This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to get Pacific Date from GMT ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to get Pacific Date from GMT ?" Watch "How to get Pacific Date from GMT ?" New topic
Author

How to get Pacific Date from GMT ?

Janelle Goldsmith
Greenhorn

Joined: Mar 20, 2003
Posts: 12
I have a calendar with GMT date.
I need to get the Pacific(-8) time equivalent for the HOURS field.
How can I do that ?
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
Look into javadocs for TimeZone class. Your code might look something like this:

Eugene.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get Pacific Date from GMT ?
 
Similar Threads
java.util.Date on different JVMs on different timezones
Help with System Time
Date vs Calendar
DST issue with GregorianCalendar
How can I get the midnight GMT time