How to restrict the result of this function DATE2DMY(date,2) to minimum two digits?

Not sure whther there is some other way…

you can try

Month := DATE2DMY(010911D,2);
IF STRLEN(FORMAT(Month)) <> 2 THEN
MonthTxt := ‘0’ + FORMAT(Month)
ELSE
MonthTxt := FORMAT(Month);

Message(’%1’,MonthTxt);