Hi,
I have been using this code since 1st July 2022 to create a dropdown with a sequence of Sundays ... 4 weeks back and 16 weeks forward.
On App Startup: (spaces added to make it more readable)
Set(
weeksList ,
ForAll ( Sequence ( 20, Day ( DateAdd ( Today(), -1 * ( Weekday ( Today(), Monday ) - 1), Days ) - 28, 7 ) ,
Date ( Year ( Today() ), Month ( Today() ), Value )
)
Then on the dropdown in question:-
AddColumns ( weeksList, "WeekEnd", Text( DateAdd (Value,6,Days), "ddd, dd-mmm-yyyy")
Yesterday, its started to fail and now gives me Thur in the dropdown instead of Sunday ... 1st Sep, 8th Sept etc... bizarre.
Am I missing something obvious here?? If there is a cleaner better way to just produce a list of Sundays, I'm happy to hear it ... I hate all the +6d stuff going on that I have to use.
Cheers community for your help
Andre