How to get latest date from a list in Microflow?

1
I have a list with date fields. For example: 4/18/2018   4/12/2018   4/13/2018 I need the latest date. How can i compare the date fields and get the latest date field (4/12/2018)?      
asked
1 answers
4

Sort the list by the date fields in descending order (latest date will be at the top of the list), then use List Operation Head, which returns the first value in the list.

Another method: use the Maximum operator in an aggeregate list action, documentation here : https://docs.mendix.com/refguide/aggregate-list

answered