mark.917
Member
Trying to take today's date and add either 1 or 3 days to it to get the resulting date. Possible?
Code:
def date = getYYYYMMDD();
def year = Round(date/10000, 0);
def month = Round((date % 10000) / 100, 0);
def day = (date % 100);
def dayofweek = getDayOfWeek(getYYYYMMDD());
def DTE = if dayofweek == 5 then 3 else 1;
def expiration_date = date + dte; <=====