Here you can find the source of getStringToTimestamp(String str)
public static Timestamp getStringToTimestamp(String str)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; public class Main { public static Timestamp getStringToTimestamp(String str) { Timestamp ts = Timestamp.valueOf(str); return ts; }//w w w . j a v a 2 s .c o m }