Here you can find the source of FormatTime(String strTime, char TimeSepartor)
public static String FormatTime(String strTime, char TimeSepartor)
//package com.java2s; //License from project: Open Source License public class Main { public static String FormatTime(String strTime, char TimeSepartor) {//w w w . ja v a 2 s . c o m String strOutTime; if (strTime.length() != 6) return strTime; strTime = strTime.substring(0, 2) + TimeSepartor + strTime.substring(2, 4) + TimeSepartor + strTime.substring(4); strOutTime = strTime; return strOutTime; } }