I have a report which takes as an input parameter a date using the date picker. The date is stored as an Epoch date in SQL Server. When I run the report in Jaspersoft Studio it works. The relevant bit of query looks like this: and cr.open_date + 7200 >= datediff(ss, '19700101', '$P!{Open Date from}' ) I publish the report to Jaspersoft Server and when I try to run it I get error below. What am I doing wrong? The server has encountered an error. Please excuse the inconvenience.Error MessageError filling report Error Messagenet.sf.jasperreports.engine.JRException: Error executing SQL statement for: BCC Tickets created. Error Messagejava.sql.SQLDataException: [Tibcosoftware][sqlServer JDBC Driver][sqlServer]Conversion failed when converting date and/or time from character string.