private static Date parseDateFromString(String string) {
        // events
        boolean dayEnded   = false;
        boolean monthEnded = false;

        StringBuilder day   = new StringBuilder();
        StringBuilder month = new StringBuilder();
        StringBuilder year  = new StringBuilder();

        for (int i = 0; i < string.length(); i++) {
            char c = string.charAt(i);
            if ( dayEnded == false ) {
                if ( c != '-' ) day.append(c);
                else {
                    dayEnded = true;
                    continue;
                }
            }

            if ( dayEnded == true ) {
                if ( monthEnded == false ) {
                    if ( c != '-' ) month.append(c);
                    else {
                        monthEnded = true;
                        continue;
                    }
                }

                if ( monthEnded == true ) {
                    year.append(c);
                }
            }
        }

        return new Date(
            Integer.valueOf(year.toString()),
            Integer.valueOf(month.toString()),
            Integer.valueOf(day.toString())
        );
    }