If I follow what you are asking try
compute date2=date1 + (65*24*60*60).
Dates in SPSS are stored as seconds since the beginning of the Gregorian
calendar so add
65 days * 24 hours * 60 minutes * 60 seconds
Hope this helps.
Art
[log in to unmask]
Social Research Consultants
University Park, MD USA
(301) 864-5570
Yasin Al-Tawarah wrote:
> Dear allstaters,
>
> I am trying to use "date function" in SPSS to extract date as following:
>
> convert date to number as,
> compute date1 = DATE.DMY(day,month,year)
>
> add 65 days, say, to date1 as,
> compute date2 =date1 + 65 days.
>
> Now the question is how to extract "date" from variable date2 which is a
>
> number.
>
> I tried the extract function in the manual but does not work.
> Any help would be appreciated.
>
> Yasin
>
>
> --
>
> Yasin Al-tawarah
>
> Tel: (01782) 583652
> E-mail: [log in to unmask]
>
|