Add Days, Weeks, Months, and Years to a Date

HotDocs Version:HD6, HD2005, HD2006, HD2007, HD2008, HD2009
Word Processor: Microsoft Word, WordPerfect
Added to Knowledge Base:September 2004

You can add days, weeks, months, and years to a known date to determine a future date. For example, if you have a minor's birth date and you want to determine when the minor will turn 18 years old, you can simply add 18 years to the birth date.

The following computations show how to add days, weeks, months, and years to a Date variable.

Example:
//Add 30 days to a date
Date Var + 30 DAYS

//Add 6 weeks to a date
Date Var + ( 6 * 7 ) DAYS

//Add six months to a date
Date Var + 6 MONTHS

//Add 18 years to a date
Date Var + 18 YEARS

 Date Var

Any Date variable. (You can also use the built-in TODAY variable if you want to add days, months, or years to the current date.)

Note: You can also subtract days, weeks, months, and years from a date by replacing + with - in the script.