I have obtained a string from an API in form of 2017-04-23T19:47:39+00:00 How do i convert it into date of format \"2017-04-23T19:47:39-0000\"?
I tried the following but
Possibly you could try to set the locale,
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy", Locale.US);