How can I get the current date and time in UTC or GMT in Java?

Posted by Behrang on Stack Overflow See other posts from Stack Overflow or by Behrang
Published on 2008-11-21T13:02:16Z Indexed on 2010/03/16 11:16 UTC
Read the original article Hit count: 226

Filed under:

When I create a new Date object, it is initialized to current time but in the local timezone. How can I get a simply the cuurent date and time in the GMT timezone?

© Stack Overflow or respective owner

Related posts about java