Last day of Month

Posted by Yokesh Parasuraman on 19-Sep-2017 15:28

Hello,
 
In Corticon rule sheet, how do we find the last day of the month? i.e. for a given date 09/19/2017, it should return as 09/30/2017.
 
Do I have to use extended operators or is there an easier logic to determine that?
 
Thanks,
Yokesh

Posted by Harold-Jan Verlee on 20-Sep-2017 03:24

I replied to the request earlier by emailing the reply but this was not picked up by the Community site. Here it is again:

Feel free to use attached Extended Operator. It contains the function you’re looking for. I’ve attached the Eclipse project source code too.[View:/cfs-file/__key/communityserver-discussions-components-files/14/Extended-Operator-Java-Financial.zip:320:240]

All Replies

Posted by Rashmi Gupta on 19-Sep-2017 16:19

Hi Yokesh,

You may find this useful. You can then convert the String back to a date or datetime value.

community.progress.com/.../2465.12-how-to-determine-leap-year

Regards,

Rashmi

Posted by Harold-Jan Verlee on 20-Sep-2017 03:24

I replied to the request earlier by emailing the reply but this was not picked up by the Community site. Here it is again:

Feel free to use attached Extended Operator. It contains the function you’re looking for. I’ve attached the Eclipse project source code too.[View:/cfs-file/__key/communityserver-discussions-components-files/14/Extended-Operator-Java-Financial.zip:320:240]

Posted by Harold-Jan Verlee on 20-Sep-2017 03:25

[View:/cfs-file/__key/communityserver-discussions-components-files/14/com.corticon.eclipse.studio.operations.extended_5F00_5.6.1.jar:320:240]And here is the compiled operator.

Posted by Yokesh Parasuraman on 25-Sep-2017 14:07

Thank you Harold

This thread is closed