java.util.Date 的子类 1,java.sql.Date 年月日 2,java.sql.Time 时分秒 3,java.sql.TimeStamp 年月日 时分秒 一般使用的话就使用 第一个和第三个。