package spark.demo
import java.sql.Timestamp
object Transaction{
def main(args: Array[String]): Unit = {
val s: String = "2020-09-02 15:00:00"
val t: Timestamp = Timestamp.valueOf(s)
println(t) // 2020-09-02 15:00:00.0
}
}
