Java tutorial
public class Main { public static void main(String[] args) { java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf("2013-04-06 09:01:10"); long tsTime2 = ts2.getTime(); System.out.println(tsTime2); } }