3 Replies Latest reply: Jul 30, 2014 4:48 AM by Andrei Kaliahin RSS

    Dates.

    Stephen Naude

      Hi All,

       

      I have the following script that sets up my variables:

       

      Let vCurrYear=year(today());

      Let vCurrMonth=month(today());

      Let vCurrDay= (I want this variable to be set to the previous day in date format)

      Let vPrevYear=Year(AddYears(today(), -1));

      Let vPrevMonth=Month(AddMonths(today(),-1));

      Let vPrevDay=(I want this variable to be set to the vCurrentDay-1 day in date format)

       

       

      Please help,