Hello, I'm trying to take a date-value passed by the user (a parameter called $P{StartDate} ), subtract one day, and save this new date as a separate parameter, called $P{FixedEndDate}. A friend of mine suggested that I create a variable with the variable expression set to the code below. However, when I do this, and run a preview of the report, I get several syntax errors- "inset ; to complete BlockStatements", "insert ")" to complete expression", "error on token ")", delete this token", and "insert "AssignmentOperator ArrayInitializer" to complete ArrayInitializerAssignment Thanks in advance for the help, my knowledge of Java is slim to nil. Code:SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd");Calendar cal = Calendar.getInstance();cal.setTime($P{StartDate});cal.add(Calendar.DATE, -1);String newdate = dateformat.format(cal.getTime());