Domino Code Fragment

Code Name*
Convert Date to Day of the Week
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.13.58.247.31
Description*
Use this formula in the input translation of a Date/Time field to translate to day of the week:
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
REM "This formula assumes there is default text in the field called Date.";
REM "Otherwise it gives the "Incorrect data type..." error.";
M := @Text(@Weekday(Date));
N := "1" : "2" : "3" : "4" : "5" : "6" : "7";
Days := "Sunday" : "Monday" : "Tuesday" : "Wednesday" : "Thursday" : "Friday" : "Saturday";
DayName := @Replace(M; N; Days);
@Text(Date) + " (" + DayName + ")"