wood burning stoves*
The moose likes Web Services and the fly likes Date Format With Time Zone Offset 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 » Web Services
Bookmark "Date Format With Time Zone Offset" Watch "Date Format With Time Zone Offset" New topic
Author

Date Format With Time Zone Offset

David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
I need to convert a date from one format to another, as follows:

2013-03-17T19:12:14Z -> 2013-03-17 19:12 +0100



Prints:
date 2013-01-17T09:00:00.000Z

Can anyone tell me how to get my desired format? I've tried everything.
David McWilliams
Ranch Hand

Joined: Mar 14, 2009
Posts: 73
I was unable to figure out the answer so I've tried the following:



So 2013-03-17T09:00:00Z converts to 2013-03-17 09:00 +0000
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date Format With Time Zone Offset
 
Similar Threads
Struts2 datetimepicker
getting wrong values using matcher.group()
Parsing date using SimpleDateFormat for hh mm ss
Converting to UTC time zone
how to get the date from the string representation of date