public String formatDtime(String time) { String[] ts = time.split("T"); String sub = ts[1].substring(0, 8); return ts[0] + " " + sub; }