I have a List with dates. My list is:
List
{\"01/01/2013\",\"10/01/2013\",\"20/01/2013\"}
I want to sort the list
Try this:
List s = new List() { "01/01/2013", "10/01/2013", "20/01/2013" }; var d = s.OrderByDescending(i => DateTime.ParseExact(i, "dd/MM/yyyy", null));