How to parse a date like "Fri Oct 31 14:51:47 جرينتش +03: 00 2014"

SQLLite gives me a date in this format.

In English, I parse it using SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.ENGLISH)

.

But when I switch the language to Arabic, I get the date Fri Oct 31 14:51:47 جرينتش+03:00 2014

.

How can I parse an Arabic date?

+3


source to share


1 answer


Solved the problem with fomratter:



SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");

      

0


source







All Articles