DEFINE VARIABLE months AS CHARACTER NO-UNDO INIT "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec".
MESSAGE PROGRAM-NAME(1) SKIP
STRING(DAY(TODAY)) + CAPS(ENTRY(MONTH(TODAY),months)) + SUBSTR(STRING(YEAR(TODAY)),3)
VIEW-AS ALERT-BOX INFO BUTTONS OK TITLE "DEBUG".
Hi bulklodd,
my good friend , thanks again. It works but i have a question.
I want to see date as 06OCT05, after printing i can see only
6OCT05 the "0" is missing. PLease help.Many Thanks.
DEFINE VARIABLE months AS CHARACTER NO-UNDO INIT "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec".
MESSAGE PROGRAM-NAME(1) SKIP
STRING(DAY(TODAY),"99") + CAPS(ENTRY(MONTH(TODAY),months)) + SUBSTR(STRING(YEAR(TODAY)),3)
VIEW-AS ALERT-BOX INFO BUTTONS OK TITLE "DEBUG".
This is a startup parameter. You should have a -dmy with the format you require. This effects the WHOLE session of that Progress. Though you could as a work around convert via string.
This is a startup parameter. You should have a -dmy with the format you require. This effects the WHOLE session of that Progress. Though you could as a work around convert via string.
To get the 0 before the six you just have to put a format phrase in the example bulkodd gave:
e.g.
Code:
DEFINE VARIABLE months AS CHARACTER NO-UNDO INIT "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec".
MESSAGE
STRING(DAY(TODAY),'99') + CAPS(ENTRY(MONTH(TODAY),months)) + SUBSTR(STRING(YEAR(TODAY)),3)
VIEW-AS ALERT-BOX INFO BUTTONS OK TITLE "DEBUG".
To get the 0 before the six you just have to put a format phrase in the example bulkodd gave:
e.g.
Code:
DEFINE VARIABLE months AS CHARACTER NO-UNDO INIT "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec".
MESSAGE
STRING(DAY(TODAY),'99') + CAPS(ENTRY(MONTH(TODAY),months)) + SUBSTR(STRING(YEAR(TODAY)),3)
VIEW-AS ALERT-BOX INFO BUTTONS OK TITLE "DEBUG".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.