Skip to content

How to: select the max between 2 dates with the groovy language #337

Answered by Illegit
Illegit asked this question in Help
Discussion options

You must be logged in to vote

Hi, finally I got a result, I share it in the forum (just in case anybody got a similar issue)

=lista[
nodeX['tag'].to.date
,
nodeY['tag'].to.date
];
d=lista.max();
d=format(d,'yyyy-MM-dd')

Eventually, I appreciate other suggested solutions.
illegit

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Illegit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant