Need to display dates in descending order from database table. How to write LINQ query in C# to display dates in descending order?
Eg:
21-03-2022
03-02-2022
17-04-2022
08-01-2022
31-01-2022
01-12-2021
Need to display dates in descending order from database table. How to write LINQ query in C# to display dates in descending order?
Eg:
21-03-2022
03-02-2022
17-04-2022
08-01-2022
31-01-2022
01-12-2021
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted May 2, 2022, 5:22 AM EDT