Domino Code Fragment

Code Name*
Convert Month Number to Month Name
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.145.17.46
Description*
The following code will convert a Month number to the corresponding Month long name.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Rem "Get the year of the current date";
Y_MENU := @Text(B + @Year(@Now));

Rem "Build a string of month numbers";
M_DEX := "01" : "02" : "03" : "04" : "05" : "06" : "07" : "08" : "09" : "10" : "11" : "12";


Rem "Build a string of the Month long names";
M_MENU := @UpperCase("January" : "February" : "March" : "April" : "May" : "June" : "July" : "August" : "September" : "October" : "November" : "December");

Rem "Use the @Replace function to replace the month number with the associated month long name";
@Replace(@Text(@Month(@Today)); @Text(@TextToNumber(M_DEX)); M_MENU)