How to Parse date in Simple date format in arabic locale?

后端 未结 1 1299
野趣味
野趣味 2020-12-11 04:55

i have date coming from server & is in the format = \"2013-01-20T16:48:43\" my application support Both Arabic & English Locale. But when i change the locale to Ara

相关标签:
1条回答
  • 2020-12-11 05:42

    Do not parse your date into the Arabic it will give you error alwayz besides try as below by setting the Locale ENGLISH only.

    final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ENGLISH);
    
    0 讨论(0)
提交回复
热议问题