private static String formatDateVerbally(final long date) {
        final int diff = CalendarUtils.daysSince(date);
        switch (diff) {
            case 0:
                return CgeoApplication.getInstance().getString(R.string.log_today);
            case 1:
                return CgeoApplication.getInstance().getString(R.string.log_yesterday);
            default:
                return null;
        }
    }
Generate a numeric date string according to system-wide settings (locale, date format)
such as "10/20/2010". Today and yesterday will be presented as strings "today" and "yesterday".

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