HOW to parse 'Sun, 16 Nov 2008 03:53:12 GMT+8' to Date

C

calvin

Hello,Everyone:
I utilize SimpleDateFormat class, But How to write the Pattern$B!)(B
I have tried 'EEE, dd MMM yyyy HH:mm:ss zzz',no use$B!*(B
How to parse the 'GMT+8' ?

Sun, 16 Nov 2008 03:53:12 GMT+8'
Sun, 16 Nov 2008 03:53:12 GMT+8'
 
A

Arne Vajhøj

calvin said:
I utilize SimpleDateFormat class, But How to write the Pattern?
I have tried 'EEE, dd MMM yyyy HH:mm:ss zzz',no useï¼
How to parse the 'GMT+8' ?

Sun, 16 Nov 2008 03:53:12 GMT+8'
Sun, 16 Nov 2008 03:53:12 GMT+8'

Convert it to the more standard GMT+08:00 before
parsing.

Arne
 
R

Roedy Green

Hello,Everyone:
I utilize SimpleDateFormat class, But How to write the Pattern?
I have tried 'EEE, dd MMM yyyy HH:mm:ss zzz',no use?
How to parse the 'GMT+8' ?

Sun, 16 Nov 2008 03:53:12 GMT+8'
Sun, 16 Nov 2008 03:53:12 GMT+8'

see http://mindprod.com/jgloss/calendar.html#PARSING
--
Roedy Green Canadian Mind Products
http://mindprod.com
Your old road is
Rapidly agin'.
Please get out of the new one
If you can't lend your hand
For the times they are a-changin'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,043
Members
48,769
Latest member
Clifft

Latest Threads

Top