Is there a rapid and simple way to obtain a List<DateTime> given start and end dates?
I obviously know that I can achieve this by a loop, but I’m wondering if there is a smarter method using Linq or some other utility.
NOTE I need to get a DateTime instance for every single day between two given dates.
You can do like this to get a list from
startDatetoendDate: