/向下取整
产生一个Date类型
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date parse = simpleDateFormat.parse("1921-10-21 12:12:11");
或者用new Date();
/向下取整
产生一个Date类型
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date parse = simpleDateFormat.parse("1921-10-21 12:12:11");
或者用new Date();