Marius Vasile

Marius Vasile

  • 602
  • 1.9k
  • 143.1k

asp.net core razor how to select a specific date in a sequence

Aug 5 2021 9:01 AM

I have a sequence of dates. I can select the lowest with 

SEDateLow = await _context.IncidentSeqEvents.Include(s => s.IncidentSeqEventMain)
                                                                    .ThenInclude(s => s.InvestigationRCA)
                                                                    .Where(s => s.IncidentSeqEventMain.InvestigationRCA.OrgID == orgid && s.IncidentSeqEventMain.InvestigationRCA.IdINV == idinv)
                                                                    .Select(s => s.EventTime)
                                                                    .MinAsync();

How do I select the second date value in the row and then third and so on?


Answers (5)