@NonNull
    public static String getShortDateFormat() {
        final DateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getContext());
        if (dateFormat instanceof SimpleDateFormat) {
            return ((SimpleDateFormat) dateFormat).toPattern();
        }
        return StringUtils.EMPTY; // should not happen
    }
Tries to get the date format pattern of the system short date.

@return format pattern or empty String if it can't be retrieved
main/src/main/java/cgeo/geocaching/utils/Formatter.java