richard_13 Posted February 5, 2016 Posted February 5, 2016 Hi thereI am trying to create a field that tests for a date being between two dates and then if it is I want to display that date but if not I want to display a blank field or null.I have used the expression editor and created the following:IF(AND($F{Hiring_Date} >= $P{ReportStart}, $F{Hiring_Date} <= $P{ReportEnd}), $F{Hiring_Date}, "")The expression editor sees it as a valid expression but when I try to preview my report I get an error message saying:The operator >= is undefined for the argument type(s) Timestamp, DateWhat am I doing wrong ?ThanksRich
richard_13 Posted February 5, 2016 Author Posted February 5, 2016 I have now changed the class of the Paramaters to java.sql.Timestamp so that all three items are the same class.The message has now changed to:The operator >= is undefined for the argument type(s) java.sql.Timestamp, java.sql.Timestamp
richard_13 Posted February 5, 2016 Author Posted February 5, 2016 I seem to have sorted this using .after and .before
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now