( |
|
|
|||
Increases or decreases the day part of a given date |
Parameters: | |
the date to convert | |
numbers of days to add or subtract | |
procedure OneItemSpec(record RcVc RepSpec,record INVc INr) BEGIN Date mdate,ndate; Date mdate2,ndate2; mdate = AddMonth(RepSpec.sStartDate,-1) // Subtracts one month from the date "RepSpec.sStartDate" mdate2 = AddDay(mdate, -1); // Subtracts one day from the date "mdate" return; END; // You can now also use mdate.day = mdate.day + 1 if you like.
Related topics: |