Date: Mon, 6 May 1996 15:50:26 +0000
Reply-To: wood-st@cityscape.co.uk
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Philip & Esther Mason <jq62@MAILHOST.CITYSCAPE.CO.UK>
Subject: SASTip: Week of year
To obtain the week of the year from a SAS date variable, use the
following code:
week=intck('week',intnx('year',date,0),date) ;
[Taken from Observations, 1st Quarter '96, p61 - there are several
other tips on that page!]
|