public static boolean isGreaterThan(Date inDate, Date dateToCompare){

       
        if(inDate.getYear() > dateToCompare.getYear()){
            return true;
        }else if(inDate.getYear() < dateToCompare.getYear()){
            return false;
        }else{
            if(inDate.getMonth() > dateToCompare.getMonth()){
                return true;
            }else if(inDate.getMonth() < dateToCompare.getMonth()) {
                return false;
            }else{

                if(inDate.getDate() > dateToCompare.getDate()){
                    return true;
                }else if (inDate.getDate() < dateToCompare.getDate()){
                    return false;
                }else{
                    return false;
                }
            }
        }


    }