public static Date getDate(final String title, final Date defaultValue) {
        final SimpleDateFormat fmt = new SimpleDateFormat("dd-MM-yy");
        final String date = ConsoleMenu.getString(title + "(dd-MM-yy" + (defaultValue != null ? ", default:" + fmt.format(defaultValue) : "") + ")",
                null);
        try {
            if (date == null || date.length() == 0) {
                return defaultValue;
            }
            return fmt.parse(date);
        } catch (final ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }