compute date data using spss for window.

classic Classic list List threaded Threaded
3 messages Options
ami
Reply | Threaded
Open this post in threaded view
|

compute date data using spss for window.

ami
Dear list,
I have two sets date data in spss for windows. I want to compute the duration between the first data and the second data. For example the first data contains 2 feb 2011 and the second data - 7 Feb 2011. So I can count the duration manually as 5 days. Is there possibility to operate this operation by spss for window? How can I perform that operation?
Thank you for your help

Yogyakarta, 7 Feb 2011
regards
Ami
Reply | Threaded
Open this post in threaded view
|

Re: compute date data using spss for window.

Bruce Weaver
Administrator
ami wrote
Dear list,
I have two sets date data in spss for windows. I want to compute the duration between the first data and the second data. For example the first data contains 2 feb 2011 and the second data - 7 Feb 2011. So I can count the duration manually as 5 days. Is there possibility to operate this operation by spss for window? How can I perform that operation?
Thank you for your help

Yogyakarta, 7 Feb 2011
regards
Ami

Look up the DATEDIFF function in the Help.
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: compute date data using spss for window.

Richard Ristow
In reply to this post by ami
At 05:43 AM 2/7/2011, ami wrote:

>I have two sets date data in spss for windows. I want to compute the
>duration between the first data and the second data. For example the
>first data contains 2 feb 2011 and the second data - 7 Feb 2011.
>[The duration is] 5 days. Is there possibility to operate this by
>spss for window?

At 09:22 AM 2/7/2011, Bruce Weaver wrote:

>Look up the DATEDIFF function in the Help.

The DATEDIFF function is exactly right, but to use it, the first and
second values (a) must both be stored in SPSS as SPSS date values,
and (b) must both be in the same record, and (c) you have to know how
to compute new values from existing values in SPSS.

If your data are stored that way, and you know how to compute new
values, fine. If not, or IF THE PARAGRAPH ABOVE DOESN'T MAKE SENSE to
you, tell us what form your data are in now.

-Best wishes,
  Richard Ristow

=====================
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