o-sama Posted October 3, 2018 Share Posted October 3, 2018 i want to add year and the next year based on the following condtion :if current date is after april / yearthen i want to showyear / year +1for ex if its may 2015then show2015/2016if its Jan 2015then show2014/2015how to achive that Link to comment Share on other sites More sharing options...
reportdev Posted October 3, 2018 Share Posted October 3, 2018 Expression to be used : MONTH($P{givenDate}) < 5 ? ((YEAR($P{givenDate} )-1) + " / " + (YEAR($P{givenDate} )) ) : ((YEAR($P{givenDate} )) + " / " + (YEAR($P{givenDate} ) + 1) ) Link to comment Share on other sites More sharing options...
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