Java tutorial
//package com.java2s; public class Main { static String formatDateTime(String mmdd, String hhmmss) { return new StringBuffer(hhmmss).insert(4, ":").insert(2, ":").insert(0, ' ').insert(0, mmdd).insert(2, "/") .toString(); } }