Java - How to set timezone of a java.util.Date

Posted by Yatendra Goel on Stack Overflow See other posts from Stack Overflow or by Yatendra Goel
Published on 2010-05-23T10:29:50Z Indexed on 2010/05/23 10:40 UTC
Read the original article Hit count: 402

Filed under:
|
|

I have parsed a java.util.Date from a String but it is setting the local timezone as the timzone of the date object.

The timezone is not specified in the String from which Date is parsed. I want to set a specific timezone of the date object.

How can I do that?

© Stack Overflow or respective owner

Related posts about java

Related posts about date