private LocalDate getDate(String toParse) {
        //create a new date
        LocalDate newDate = LocalDate.now();

        //if the string to parse is not valid
        if (toParse.length() < 5) {
            return newDate;
        }

        //get the line with the date
        if (toParse.indexOf("°") > 0) {
            toParse = toParse.substring(toParse.indexOf("°"));
        }

        toParse = toParse.substring(toParse.indexOf(",") + 2);

        //get the day
        int day = Integer.parseInt(toParse.substring(0, toParse.indexOf(" ")));
        toParse = toParse.substring(toParse.indexOf(" ") + 1);

        //get the month
        //int month = Integer.parseInt(toParse.substring(0, toParse.indexOf(" ")));
        String month = toParse.substring(0, toParse.indexOf(" "));

        //translate the month to English
        Translator translate = Translator.getInstance();
        month = translate.translate(month, Language.FRENCH, Language.ENGLISH);

        //convert string to int month
        int monthInt = months.indexOf(month) + 1;
        toParse = toParse.substring(toParse.indexOf(" ") + 1);

        //get the year
        int year = Integer.parseInt(toParse.substring(0, toParse.indexOf(",")));

        //set the date
        newDate = LocalDate.of(year, monthInt, day);

        return newDate;
    }