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
Use capital HH to get hour of day format, instead of am/pm hours
HH