JBoss Community

Re: Error setting a Date type parameter

created by Carlos Celis Osorio in JBoss Tools - View the full discussion

The solution is put the next code at initiliaze() method of the report:

 

 

importPackage(Packages.java.text);
df = new SimpleDateFormat("yyyy/MM/dd");
params["FechaInicio"] = df.parse(params["FechaInicioString"]);
params["FechaFin"] = df.parse(params["FechaFinString"]);

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community