compute todaydate=$time.
formats todaydate (adate10).
compute yeardif=datediff(date2, date1, "years").
compute monthdif=datediff(date2, date1, "months").
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of Kevin L
Sent: Sunday, October 18, 2009 9:51 AM
To:
[hidden email]
Subject: Question on dates
Hello,
I'm new to SPSS and am glad I've found this forum. Currently trying out
PASW18.
Some initial questions:
1. How do we get the software to auto insert the current date (date2)?
2. How do I get SPSS to calculate the difference between date2 and date1,
and get an answer in years and months if possible?
Thank you.
kevin.
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD