/**
     * 判断两个时间是否相隔一天
     */
    public static boolean overOneDay(String date1,String date2){
        Date startTime =stringToDate(date1);
        Date endTime =stringToDate(date2);
        long  between = endTime.getTime() - startTime.getTime();
        if(between > (24* 3600000)){
            return true;
        }
        return false;
    }本文出自 “猴子也疯狂” 博客,请务必保留此出处http://1251769215.blog.51cto.com/11633863/1786990
原文:http://1251769215.blog.51cto.com/11633863/1786990