set var dayno=(jdate(.#date))
R>show var dayno
2005166
R>set var yr = (iyr(.#date))
R>show var yr
2005
R>set var yr = (.yr * 1000)
R>show var yr
2005000
R>set var dayno = (.dayno - .yr)
R>show var dayno
166
R>set var weekno = (.dayno/7)
R>show var weekno
23.7142857142857
I'm sure you can put this into a single command (maybe 2)
Bernie Lis
----- Original Message -----
From: "Claudine Robbins" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Wednesday, June 15, 2005 3:47 PM
Subject: [RBG7-L] - Number of weeks
Hi everyone,
Jean-Marc Masse wants to know...
set var vidweek = (idwk(.#date)) yields 3, integer for the third day of
the
week of the current month.
set var vimonth = (imon(.#date)) yields 6, integer for the sixth month of
the year.
How would one go about finding out the week of the current year, i.e.
currently 24?
TIA,
Claudine :)