pcouas_1 Posted March 11, 2016 Share Posted March 11, 2016 Hi, I want define an parameter for date difference, but that's not working ?(((int) ((new java.text.SimpleDateFormat("dd/MM/yyyy").parse($P{periodeFin}).getTime() -new java.text.SimpleDateFormat("dd/MM/yyyy").parse($P{periodeDebut}).getTime())/(1000*60*60*24)))>365 ? true:false)[/code] Where is my mistakeRegards Link to comment Share on other sites More sharing options...
hozawa Posted March 12, 2016 Share Posted March 12, 2016 Probably because you're doing an integer operation instead of using a long. 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