Sort string list with dates in C#

前端 未结 6 1616
不知归路
不知归路 2020-12-31 07:00

I have a List with dates.
My list is:

{\"01/01/2013\",\"10/01/2013\",\"20/01/2013\"}

I want to sort the list

6条回答
  •  感情败类
    2020-12-31 07:42

    Why do you want to use List instead of List?

    List dates = ...
    
    dates.OrderByDescending(c => c).ToList();
    

提交回复
热议问题