时间工具类 获取当前时间对象 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date nowDate = sdf.parse(Dates.currentDateTime()); Date noDate = Calendar.getInstance().getTime();