Here you can find the source of formatStrDateTime(String stringDateTime)
public static String formatStrDateTime(String stringDateTime)
//package com.java2s; public class Main { public static String formatStrDateTime(String stringDateTime) { stringDateTime = stringDateTime.replaceAll(":", ""); stringDateTime = stringDateTime.replaceAll("-", ""); stringDateTime = stringDateTime.replaceAll(" ", ""); return stringDateTime; }//from w w w . j av a2 s.c o m }