Java tutorial
//package com.java2s; public class Main { public static String getTimeFormat(String timestr) { String datetimestr = new String(); datetimestr = timestr.substring(5, 7); datetimestr = datetimestr.concat("/"); datetimestr = datetimestr.concat(timestr.substring(8, 10)); datetimestr = datetimestr.concat(" "); datetimestr = datetimestr.concat(timestr.substring(11, 16)); return datetimestr; } }