@NonNull
    public static String formatShortDate(final long date) {
        final String dateFormatString = Settings.getShortDateFormat();
        if (!dateFormatString.isEmpty()) {
            return new SimpleDateFormat(dateFormatString, Locale.getDefault()).format(date);
        }
        return android.text.format.DateFormat.getDateFormat(getContext()).format(date);
    }
Generate a numeric date string according to system-wide settings (locale, date format)
such as "10/20/2010".

@param date milliseconds since the epoch
@return the formatted string
main/src/main/java/cgeo/geocaching/utils/Formatter.java