Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes  how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar" Watch " how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar" New topic
Author

how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
im building JAXWS client , one of the methods get XMLGregorianCalendar . now i need to format this data 2011-11-06T14:34:16.679+02:00 to be set into XMLGregorianCalendar. how can it be done .
the date is taken from sniffing other clients that connecting to the WS server .
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
I have removed a ':' from the input string timezone indicator to parse into Date.
 
jQuery in Action, 2nd edition
 
subject: how to set 2011-11-06T14:34:16.679+02:00 into XMLGregorianCalendar
 
Similar Threads
SSL Connection between Weblogic and Apache web server!!
how to get user defined timezone using XMLGregorianCalendar.
DST issue with GregorianCalendar
Extracting and Comparing Data
Handling a strange date format