Twitter date unparseable?

后端 未结 7 2034
误落风尘
误落风尘 2020-12-11 15:52

I want to convert the date string in a Twitter response to a Date object, but I always get a ParseException and I cannot see the error!?!

Input string: Thu Dec 23 18

相关标签:
7条回答
  • 2020-12-11 16:19

    You should not have ZZZZZ but only Z for the timezone.

    See samples in http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html for more information.

    EEE, d MMM yyyy HH:mm:ss Z > Wed, 4 Jul 2001 12:08:56 -0700

    0 讨论(0)
提交回复
热议问题