LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (December 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 16 Dec 2008 16:31:08 -0500
Reply-To:     Art@DrKendall.org
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Art Kendall <Art@DrKendall.org>
Organization: Social Research Consultants
Subject:      Re: transforming dates
Comments: To: Gene Maguin <emaguin@buffalo.edu>
In-Reply-To:  <98ED718ED2D2498E83AD7A0B38561E81@ssw.buffalo.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

compute weekend= any(xdate.wkday(my date),1,7).

Art Kendall Social Research Consultants

Gene Maguin wrote: > Scott, > > >>> I have a variable in a large data set that reflects the date that an >>> > assessment was made. I want to convert the date (for which I have the > month/day/year) to a variable that reflects whether or not the specific > day was a weekday or weekend. Does anyone have any macros or general > advice on how to do this in a more automated fashion? Thanks in advance! > > Look at the Xdate.weekday function in the universals section of the > reference. > > Gene Maguin > > ===================== > To manage your subscription to SPSSX-L, send a message to > LISTSERV@LISTSERV.UGA.EDU (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 > > >

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (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


Back to: Top of message | Previous page | Main SPSSX-L page