You may need to format your date first. Import java.text.DateFormat; then try:
Code:
/** Create Calendar variable */
Calendar now = Calendar.getInstance();
/** Create and cast offset variable */
int offset = Integer.parseInt(parms.getProperty("offset"));
/** Add the offset to the current date */
now.add(Calendar.DATE, offset);
DateFormat newDate = DateFormat.getDateInstance(DateFormat.LONG);
String newDateString = newDate.format(now);
/** Display updated date */
msg += "<p>New Calendar Date, " + newDateString + "!</p>";
// "</form>\n" + add(Calendar.DATE,offset);