Date and Time Add 1 Year to Attribute

0
Hi Mendix!  i’m trying to make a document control system where the user fills the date for ‘last review’ it automatically adds a year on and displays that value as ‘next review’ im guessing it will be calculated by microflow if so could someone help with the design as i havent done this type of thing before. 
asked
1 answers
1

Hi Charlie, 

 

During the save microflow, you can add a change object action and fill the next review date using.

addYear($LastReview, 1)

 

Here is some documentation: https://docs.mendix.com/refguide/add-date-function-calls/

 

Here is an example, rather than [%CurrentDateTime%] you can use your Last Review attribute

answered