public static String formatDateTime(final String format) {
        final Date date = Calendar.getInstance().getTime();
        final DateFormat dateFormat = new SimpleDateFormat(format, Locale.getDefault());
        return dateFormat.format(date);
    }
returns current date/time formatted according to the supplied {SimpleDateFormat} string

@param format string
@return formatted date
main/src/main/java/cgeo/geocaching/utils/CalendarUtils.java