date format to timestamp java code example
Example 1: java timestamp format
Timestamp(int year, int month, int date, int hour, int minute, int second, int nano)
Example 2: date to timestamp java
All you need to do is change the string within the java.text.SimpleDateFormat constructor to: "MM-dd-yyyy HH:mm:ss".
Just use the appropriate letters to build the above string to match your input date.