Hi,
i want to use the Weekday function. I made a test with the follwing code. But the result isnt correct.
DEFINE VARIABLE daylist AS CHARACTER
FORMAT "x(10)"
INITIAL "Sunday, Monday, Thusday, Wednesday, Thursday, Friday, Saturday".
DEFINE VARIABLE dayname AS CHARACTER
LABEL "Weekday".
Define var daynum as int.
daynum = WEEKDAY(03/24/68). dayname = ENTRY(daynum,daylist).
DISPLAY dayname format "x(10)".
The date i use to test is a Sunday. But Progress tells me it is a Saturday, where is my mistake ???
Thanks foor your help.
Make
i want to use the Weekday function. I made a test with the follwing code. But the result isnt correct.
DEFINE VARIABLE daylist AS CHARACTER
FORMAT "x(10)"
INITIAL "Sunday, Monday, Thusday, Wednesday, Thursday, Friday, Saturday".
DEFINE VARIABLE dayname AS CHARACTER
LABEL "Weekday".
Define var daynum as int.
daynum = WEEKDAY(03/24/68). dayname = ENTRY(daynum,daylist).
DISPLAY dayname format "x(10)".
The date i use to test is a Sunday. But Progress tells me it is a Saturday, where is my mistake ???
Thanks foor your help.
Make