Domino Code Fragment

Code Name*
Forcing a Date Field to Backdate
Date*
05/14/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.119.138.123
Description*
If you need a date field to always backdate itself to the previous Sunday, try this formula: Since 1 represents Sunday, (1-@Weekday(@Today)) returns a negative value indicating the number of days between Sunday and today. So if today is Thursday, we get 1 - 5 = -4. @Adjust uses this negative value to return a new time-date value, decremented to the previous Sunday.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
@Adjust(@Today;0;0;(1-@Weekday(@Today));0;0;0)