aspose file tools*
The moose likes Beginning Java and the fly likes Converting UTC time to Date object, Really need Help ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting UTC time to Date object, Really need Help !" Watch "Converting UTC time to Date object, Really need Help !" New topic
Author

Converting UTC time to Date object, Really need Help !

Imran Sabir
Greenhorn

Joined: Mar 20, 2009
Posts: 3
hi All,

I get a string which will always be have UTC time format "2009-04-16T00:00:00+02:00" . I want to get the right date out this string

Being a beginner, I have no idea that how to convert this string to Date Object.

Can somebody be really nice to guide me in the right direction.

I am really stuck into it.. did a lot of goodle. but no clue

kind regards
Imran Sbair
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1958
    
    7

You may want to check out this thread from earlier about similar thing.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Converting UTC time to Date object, Really need Help !
 
Similar Threads
getting time
timezone woes
How can dateTime field format can be controlled ?
System.currentTimeMillis() is not UTC in Milliseconds since 1.1.1970 ! Official JavaDoc wrong?
Convert Local time to UTC and vice versa