ssr Posted July 18, 2014 Share Posted July 18, 2014 My report has a parameter _REPORT_DAY (java.util,Date)and an expression like DAYS(TODAY(), $P{_REPORT_DAY})The days-diffence function DAYS() seems to consider the time-parts of a day as well:now_REPORT_DAYDAYS(TODAY(), $P{_REPORT_DAY}) =18.07.14 17:16:0019.07.14 17:13:00018.07.14 17:16:0019.07.14 17:17:001 How do I check if _REPORT_DAY is tomorrow, irrespective of the time of the day? Link to comment Share on other sites More sharing options...
hozawa Posted July 18, 2014 Share Posted July 18, 2014 Use Calendar. Tomorrow will be: calendar.add(Calendar.DAY_OF_YEAR, 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