新手 SimpleDateFormat df1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
java.util.Date date11 = df1.parse("2010-6-2 16:10:38.00");
String time = df1.format(date11);
Timestamp ts = Timestamp.valueOf(time);
System.out.println(ts);
用这段代码valueOf那报错
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
import sql下面的 Timestamp