Date: Thu, 15 Apr 2004 18:25:08 -0400
Reply-To: Art Kendall <Art@DRKENDALL.ORG>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Art Kendall <Art@DRKENDALL.ORG>
Subject: Re: help with dates
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
select if datevar ge date.mdy(3,3,2003) and datevar le date.mdy(3,9,2003).
Social Research Consultants
University Park, MD USA
Charles Outcalt wrote:
> Hello All,
> I have a quick question on dates in SPSS. I've converted several
> string variables to dates successfully, but now I'm having trouble
> manipulating those data variables. In particular, I'd like to select
> cases with date variables from, say, 03/03/03 to 03/09/03 (or in any
> other date range).
> How can I select dates in a particular range, if my date variable is
> formatted as mm/dd/yy? Do I need to convert the date variable into an
> integer to represent the number of seconds since 1584 (or whenever SPSS
> starts counting seconds)? Or is there an easier way to do this?
> Thank you,