I have searched a lot for the solution of this problem.But nothing could suggest an appropriate solution.
I have date ' 03/02/2015 12:00:00 AM' in string format .how can i convert it to timestamp?
I have tried with the following code
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a");
String str = formatter.format((Date) fromTimeInTimestamp);//fromTimeInTimestamp is 2015-03-02 00:00:00.0
but I need str in timestamp format.How can I get this?