Question: how to convert string to date in java in yyyy-mm-dd hh mm format?
Answer: Date temp = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss. SSSSSS"). parse("2012-07-10 14:58:00.000000"); DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss"); Date thisDate = dateFormat. parse("2012-07-10 14:58:00.000000");