Remove weekdays from a list the easy way

The new @transform formula in Notes 6 makes this task a lot easier than under R5.

This is what I have used:

DateList := @TextToTime(@Explode(@TextToTime(@Text(Start) + “-” + @Text(End))));

WeekdaysOnly := @Transform(DateList; “myDate”; @If(@Weekday(myDate)=1 | @Weekday(myDate)=7;@Nothing;myDate));

I then save the resultant WeekdaysOnly list to a multi-value date field.

This was pretty cumbersome under R5. So I thought I’d share it with y’all and hopefully it helps someone save some time.

Cheers

Craig