Create list or array of dates

I need to create a list of dates, from a start date to an end date and store them in a variable, to later be used in any sequence.

As the initial date, it would be the current date, which I already have in a variable:
imagen

And this would be the final date:
imagen

I’ve been reviewing some videos and tutorials, but I can’t get what I need, since the idea of ​​the list is to get something like:

20240101
20231201
20231101
20231001
20230901
… etc

So, that way you can use dates more effectively instead of creating variable by variable.


Enumerable.Range(0,13).select(Function (x) startDate.AddMonths(-x)).toArray

1 Like

above modified

Excellent! Works this method!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.