private static String getExpirationDate(int futureDays) {
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.DAY_OF_YEAR, futureDays);
        Format formatter = new SimpleDateFormat(XLinkConstants.DATEFORMAT);
        return formatter.format(calendar.getTime());
    }
private static String getExpirationDate ( int futureDays ) { Calendar calendar = Calendar . getInstance ( ) ; calendar . add ( Calendar . DAY_OF_YEAR , futureDays ) ; Format formatter = new SimpleDateFormat ( XLinkConstants . DATEFORMAT ) ; return formatter . format ( calendar . getTime ( ) ) ; }
Returns a future Date-String in the format 'yyyyMMddkkmmss'.