User Guide
20 0
Chapter 9
Figure 9-20
New variable displayed in Dat a Editor
Adding a Duration to a Date
You can add or subtract durations, such as 10 days or 12 months, to a date. Continuing
with the example of the software company from the previous section, consider
determining the date on which each customer’s initial tech support contract ends.
Thedatafileupgrade.sav contains a variable for the number of years of contracted
support and a variable for the initial purchase date. You can then determine the end
date of the initial support by adding years of support to the purchase date.
To add a duration to a date:
E Select Calculate with dates and times on the introduction screen of the Date and Time
Wizard and click Next.
E Select Add or subtract a duration from a date and click Next.