dynamic date in microflow condition

3
How is this possible? I would like to make a condition from my object attribute $jaargang/jaar and variable $maand (both integers) with the dateTime function. dateTime($jaargang/jaar, $maand) > [%CurrentDateTime%] The two errors I get are : - The first argument of function 'dateTime' must be a literal integer. - The second argument of function 'dateTime' must be a literal integer.
asked
3 answers
3

Perhaps parseDateTime(toString($jaargang/jaar)+ '/' + toString($maand), 'yyyy/MM') > [%CurrentDateTime%] would work

answered
1

Hi Roeland,

shouldn't you use the 'formatdateTime' function and shouldn't the statement before the '> currentdatetime' be between brackets?

answered
1

parseDateTime($JaargangIterator/Jaargang + '-' + $maand_teller + '-01','yyyy-MM-dd') >[%CurrentDateTime%]

i'm going to try if this works.

answered