How to Filter a List of String

Hello guys ,

I have a list with values {“20-Dec-2021”,“24-Dec-2020”,“20-Dec-2021”,“24-Dec-2020”}. I want to filter it to keep unique values like {“20-Dec-2021”,“24-Dec-2020”}. I want to achieve this with a simple code
Thanks

@MasterOfLogic
YourListVar.Distinct().toList

1 Like

Great Thank You …

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.