This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to instantiate calender in GMT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to instantiate calender in GMT?" Watch "How to instantiate calender in GMT?" New topic
Author

How to instantiate calender in GMT?

jigar vyas
Greenhorn

Joined: May 12, 2008
Posts: 3
Hi All,

My application server is running on PST machine. I want to instantiate a java calendar object in GMT. How it can be achieved? I am using JDK 1.4.

Pls. suggest.

Thanks,
Jigs.
[ June 06, 2008: Message edited by: jigar vyas ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Use a Calendar and set its Timezone.

This is solvable by using the standard Java APIs so I'm moving this to Java in General.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
GeeCON Prague 2014
 
subject: How to instantiate calender in GMT?