public static boolean isValidDate(String stringDate) {
        if (stringDate.length() == 10) {
            String stringDay = stringDate.substring(0, 2);
            String separatorOne = stringDate.substring(2, 3);
            String stringMonth = stringDate.substring(3, 5);
            String separatorTwo = stringDate.substring(5, 6);
            String stringYear = stringDate.substring(6);
            if (isNumber(stringDay) && isNumber(stringMonth) && isNumber(stringYear) && separatorOne.equals("/") && separatorTwo.equals("/")) {
                Date f = new Date(Integer.parseInt(stringDay), Integer.parseInt(stringMonth), Integer.parseInt(stringYear));
                if (f.isValid()) {
                    return true;
                }
            }
        }
        return false;
    }