计算某天与今天相差的天数

        public int daysBetween(String dateStr) throws ParseException {
     
       
   Date today = new Date();
   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
   Date compareDate = sdf.

你可能感兴趣的:(计算某天与今天相差的天数)