I have a SharePoint list "messages" with a date column "lastlyupdatedon" (month-day-year) without time.
I need to get a distinct list of the years used in that SharePoint list.
So far i got this:
ClearCollect(
colFilterYears,
ShowColumns(
Messages,
"LastlyUpdatedOn"
)
)
I am not able to use directly the function year() inside, am I? The result should be a collection with the values 2021, 2022, 2023 etc.