Question

Number of months between 2 java.util.Date, excluding day of month

Hi Team,

We are using PEGA 731 which is an Oracle SDK JAVA 8. As part JSR-310 which is been added in SDK of Java 8  has a standard way of getting 
months difference of two date values:
  1. In order to perform the following when we created our own function we were not able to save the following with missing libary.

 


 

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

April 20, 2018 - 3:14pm

Did you include the appropriate java package in the library?

April 20, 2018 - 11:28pm

As per the Article: http://www.oracle.com/technetwork/articles/java/jf14-date-time-2125367.html
Its mentioned that JAVA SE 8 will have the following library in it by default, do you want us to install the following library jar and add that to the application server parameter.

April 23, 2018 - 7:17am
Response to Sharg

I was referring to the library rule associated with the function.

For example:

May 2, 2018 - 10:10pm

Yes the following is been added and sitll getting the error on save

May 4, 2018 - 8:48am
Response to Sharg

YearMonth() is not a valid method for the class. Try referencing a method in YearMonth, such as:

YearMonth m1 = YearMonth.now();