renatomitsunami Posted October 17, 2017 Share Posted October 17, 2017 Hi...I'm new in Jaspersoft Studio and I have a question in my report:(Field1) = dd/mm/yy hh:mm:ss (this field contains Date and Time of ticket creation)IF (Field1) BETWEEN "19:00:00" AND "07:00:00" THEN "YES" ELSE "NO"YES=No business hourNO=Business hourThanks Link to comment Share on other sites More sharing options...
reportdev Posted October 17, 2017 Share Posted October 17, 2017 Try this expressionIF(HOUR($P{Field}) > new Integer(0) && HOUR($P{Field}) < new Integer(7),"Non Business Hour",(HOUR($P{Field}) > new Integer(19) && HOUR($P{Field}) < new Integer(24) ? "Non Business Hour" : "Business Hours" )) Link to comment Share on other sites More sharing options...
renatomitsunami Posted October 18, 2017 Author Share Posted October 18, 2017 Hi reportdev.It works ...!!Thanks so much for your support !! 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