Domino Code Fragment

Code Name*
How do I get the week ending date for a specific day?
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.219.236.62
Description*
Returns week ending day for a specific date.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Assuming tdate contains the day you'd like to convert:
Files/Graphics attachments (if applicable): Code:
@If(tdate != ""; @Adjust(tdate; 0; 0; @Modulo(8 - @Weekday(tdate); 7); 0; 0; 0); tdate)