public String getRandomDate() {
        Random rn = new Random();
        String day;
        String month;
        String date;

        day = Integer.toString(rn.nextInt(28));
        month = Integer.toString(rn.nextInt(12));

        if (day.length() < 2) {
            if (day.equalsIgnoreCase("0")) {
                day = "1";
            }
            day = "0" + day;
        }
        if (month.length() < 2) {
            if (month.equalsIgnoreCase("0")) {
                month = "1";
            }
            month = "0" + month;
        }

        date = getRandomNumber(1980, 2005) + "-" + month + "-" + day;

        return date;
    }