I have to convert a UTC date in this format \"2016-09-25 17:26:12\" to the current time zone of Android. I did this:
SimpleDateFormat simpleDateFormat = new Simp
You can do it with set timezone method.
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date myDate = simpleDateFormat.parse(rawQuestion.getString("AskDateTime"));