GlideDateTime - addWeeks(Number weeks)

Adds a specified number of weeks to the current GlideDateTime object. A negative parameter subtracts weeks.

Use addWeeksLocalTime() and addWeeksUTC() instead of this method.

Table 1. Parameters
Name Type Description
weeks Number The number of weeks to add. Use a negative number to subtract.
Table 2. Returns
Type Description

var gdt = new GlideDateTime("2011-08-31 08:00:00");

Output: 2011-08-24