Here you can find the source of timeStampToDate(String timeStamp)
static public Date timeStampToDate(String timeStamp)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { static public Date timeStampToDate(String timeStamp) { if (timeStamp != null) { try { return new SimpleDateFormat("ddMMyyyyHHmmssSSS").parse(timeStamp); } catch (Exception e) { return null; }/* ww w . j ava 2 s. c om*/ } else { return null; } } }