How to get a range of dates from a number gave?

I would like get a range of dates from a number gave and a date specified

For exemplo, the initial date is 19/08/2020, so I have a number 6, then i would like receive
(19/08/2020, 19/09/2020, 19/10/2020, 19/11/2020, 19/12/2020, 19/01/2021) is there any block that do range of dates?

Use the clock component and some logic for that, use the add months block of clock component and for the number of days to add use a for each number block, suppose you want to add 5 days then in the ‘to’ paramter in for each number block to 5 and in the add month block, set quantity to number of for each number block

3 Likes

I will try!

This is a good idea but

this is also hackable

user can easily change the device,s date and time and hack the APP

2 Likes

Then, using the same logic but use online API to advoid cheating

1 Like

It will be typed by the user, correct?

It will be set to now date or select by the user

1 Like

Can help y.ou , I I know it’s not the same.

2 Likes

looking…

These are expiration dates. Period of 30 30 days. Remember that some months have 28,29,30 and 31 days. So the date should vary (19, 18 …) If there is no such concern, then increase the months from 1 to N and check the change of year if it is month = 12.

I will give it a shot tomorrow :sleeping::sleeping:

Here is an example using date picker if it helps

3 Likes

yeah this is what i suggested

2 Likes

The only change, he will have to change the parameter every 1 day … for 30 in 30 days. These are expiration dates.

1 Like

you mean instead setting add months right?

2 Likes

Yeah, add months

did it work?

Yes. AddMonth … :+1: Or the way he wants to do it … or get it ready …

1 Like

It Works perfectly

1 Like