I tried to parsing time string to time data, But having problem to parsing millisecond part. Anyone know how to do this?
val format = new SimpleDateFormat( "yyyy-MM-dd aa hh:mm:ss.SSSSSS")
format.setLenient( false)
Try(new Timestamp(format.parse( "2015-11-13 6:27:26.933000").getTime)) match {
case Success(t) => Some(t)
case Failure(_) =>
// cannot convert. error here
}