r.reddy.galla Posted May 11, 2017 Posted May 11, 2017 Hi,I have one requirement, When we passed parameter as year as 2017 then i need to get 2018 year details.it means we need year+1 details.Please help us quickly for this question.Thanks
reportdev Posted May 11, 2017 Posted May 11, 2017 jasper has inbuilt date functions.if your parameter is of java.sql.Date type , then use YEAR($P{Parameter1} ) + 1if your parameter is of java.lang.String. then use Integer.valueOf( $P{Parameter1}) + 1
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