Function to Increment a Date Field

Your rating: None Average: 2 (1 vote)

The function increments a date field using the AddToDate function and sets a weekday field to the corresponding weekday. You can increment date value by year, month or day.

   If All(&DATE) Then
      &DATE = AddToDate(&DATE, &YEAR_INC, &MONTH_INC, &DAY_INC);
      /*get day value for the incremented date*/
      &WEEKDAY = String(Weekday(&DATE));

Please try to help out with unanswered topics on the forum. Chances are you have had the same issue/question some time in your IT career!