public boolean validateDate(String str) {
        boolean validate = false;
        Calendar year = Calendar.getInstance();
        year.setLenient(false);
        if (validateInt(str) && Integer.parseInt(str) > 1900 && Integer.parseInt(str) <= year.get(Calendar.YEAR)) {
            try {
                year.set(Calendar.YEAR, Integer.parseInt(str));
                year.getTime();
                validate = true;
            } catch (NumberFormatException nfe) {
                validate = false;
            }
        }
        return validate;
    }