|
At 01:18 AM 11/25/2006, SPSS Chen wrote:
>Could you tell me how I can generate the other two Column "Month" and
>"Year"
>on the base of "Date" in SPSS(Systax). Thanks for your help!
If "Date" is an SPSS date variable (see Universals in the Command
Syntax Reference), the year as a four-digit number is
XDATE.YEAR(Date)
The month, as a number from 1 to 12, is
XDATE.MONTH(Date)
You can use these expressions in COMPUTE statements to put these values
in new variables ("columns").
|