Date: Thu, 2 Sep 2004 14:42:40 -0500
Reply-To: "Peck, Jon" <peck@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Peck, Jon" <peck@spss.com>
Subject: Working with Dates in SPSS
Content-Type: text/plain; charset="us-ascii"
SPSS 13 includes a Date/Time wizard to help with problems like this. It help you construct dates and times from parts, to extract selected parts, to calculate with dates and time, and to convert date strings to SPSS date variables.
There are also some new functions to make date arithmetic easier.
Regards,
Jon Peck
SPSS
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Richard Ristow
Sent: Thursday, September 02, 2004 2:35 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: [SPSSX-L] Date again
At 02:06 PM 9/2/2004, Mahbub Khandoker wrote:
>I would like to convert the string date to normal date format.
>The dates (string) are now as follows,
>2004 Jan,11
>2003 Oct,18
>2004 Jun,10
>2003 Aug,15
>2004 May,03
Many date input problems in SPSS require some string manipulation and
the NUMBER function. Fortunately, that's usually all they take. Here's
one solution for this format. Tested code; this is SPSS draft output:
|