Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to split list by date c#

List<List<Payments>> result = payments 
    .GroupBy(p => p.PaymentDate.Date)
    .Select(g => g.ToList())
    .ToList();
 
PREVIOUS NEXT
Tagged: #split #list #date
ADD COMMENT
Topic
Name
3+5 =