This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Derived Date Variables are used to perform calculations on other variables, the result of which will be stored as a date.
For example, if Q1 was "When did you start your holiday?" and Q2 was "How many days did you stay?, a Derived Date Variable could be created to calculate the date of leaving.
The variable shown here is called DLEAVE and the single OK value is set to Q1+Q2, resulting in a date being stored.

Q1 was set as a question date to record the start; Q2 was set as a question quantity to record a number of days.
Valid value |
Valid values include: Q1+Q2 where Q1 is a date and Q2 is a quantity Q1+100 where Q1 is a date and 100 days are added. today-Q2 where the number of days in Q2 is subtracted from today's date (taken from the PC settings) to generate a date. |
|
See Also |