Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting a string in GregorianCalendar format

807603Jan 30 2008 — edited Jan 30 2008
Hi I want to convert a string which is exactly in Gregorian Calendar style to GregorianCalendar object so that I can use getTimeInMillis().

Here is the exact situation :
Start time = 2008-01-19T00:05:00-06:00
End time = 2008-02-19T00:10:00-06:00

I want the difference in hours. I dont want to do all the split and parsing. Just want to send the two strings and get difference.

Please help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2008
Added on Jan 30 2008
3 comments
307 views