I am having problems parsing time strings in Java that are in the format of 2013-01-09 09:15:03.000000. In my data, the last three digits are always 0 (meaning
2013-01-09 09:15:03.000000
try java.sql.Timestamp
Timestamp ts = Timestamp.valueOf("2013-01-09 09:15:03.500000"); Date date = new Date(ts.getTime())
it's also thread-safe and fast as opposed to SimpleDateFormat