定义日期格式:SimpleDateFormat sdf = new SimpleDateFormat(yy-MM-dd); sql语句为:String sqlStr = "select bookDate from roomBook where bookDate between '2007-4-10' and '2007-4-25'"; 输出: System.out.println(df.format(rs.getDate("bookDate"))); 8 经典例子(http://blog.csdn.net/donkeyz...