This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 19723
    
  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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to instantiate calender in GMT?