I want to convert string Date into Timestamp in java. The following coding i have written.I have declare the date for date1 is: 7-11-11 12:13:14.
SimpleDateF
You can convert String to Timestamp:
String inDate = "01-01-1990" DateFormat df = new SimpleDateFormat("MM-dd-yyyy"); Timestamp ts = new Timestamp(((java.util.Date)df.parse(inDate)).getTime());