LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 21 Mar 2007 12:08:06 -0700
Reply-To:   "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Subject:   Re: SAS date
In-Reply-To:   <729552.50871.qm@web30913.mail.mud.yahoo.com>
Content-Type:   text/plain; charset="us-ascii"

Assuming that week 1 starts on day 1 of the month, then

date = mdy(month, (week-1)*7+1, year);

should work.

-----Original Message----- From: Westcotter [mailto:snip] Sent: Wednesday, March 21, 2007 11:45 AM To: SAS-L@LISTSERV.UGA.EDU Subject: SAS date

Dear all,

Here is a question I would like to ask for your help.

One observation includes year (1965), month (5), and week of the month (which could be only 1, 2, 3, or 4).

I would like to know exact date inluding year, month, and the day (the first day of the week, such as Sunday, will be fine).

How can I do this?

Thanks so much.

Kangsheng

________________________________________________________________________ ____________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/


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