error in microflow

0
Hello,   I created a microflow and inside the change object i entered the following line which should return the year as integer from date of birth(dateofbirth). but i am getting the following error message , would like to know what i configured wrong. Thanks.
asked
1 answers
1

formatDate has to be formatDateTime. So:

parseInteger(formatDateTime($IteratorCustomer/Dateofbirth, “yyyy”))

 

answered