I don't understand what you want to do. How many days since the 1st of Jan it is? So 1st Jan is day 1, 2nd Jan is day 2, etc? If that's what you want, then try this.
Code:
DEFINE VARIABLE lvDate AS DATE NO-UNDO.
lvDate = TODAY.
MESSAGE (lvDate - DATE(1,1,YEAR(lvDate)) + 1)
VIEW-AS ALERT-BOX INFO BUTTONS OK.
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.