File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 19760
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to instantiate calender in GMT?