1

This is due to different jdk versions on android.

  String string = "Tue Oct 16 00:00:55 IST 2012";
  Date date = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy").parse(string);

and also tried

String string = "Tue Oct 16 00:00:55 IST 2012";
Date date = new SimpleDateFormat("EEE MMM dd HH:mm:ss 'UTC' yyyy").parse(string);

adding Locale in SimpleDateFormat constructor has no effect.

I have searched and got this but can't find any workaround.

Is there any workaround for this?

Community
  • 1
  • 1
Sunny
  • 14,522
  • 15
  • 84
  • 129

0 Answers0