Here you can find the source of toTimeStamp(String argS)
public static java.util.Date toTimeStamp(String argS)
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static java.util.Date toTimeStamp(String argS) { java.util.Date date = null; SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss"); try {//from ww w. j av a 2 s. com date = (java.util.Date) newFormat.parse(argS); } catch (Exception eException) { } return date; } }