• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to instantiate calender in GMT?

 
jigar vyas
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20493
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic