Claudine, this will be incorrect if the year starts on a Monday, and your week 
starts Monday, but
I am sure you can sort that out!

-- GetWeek.rmd
SET VAR vJDate INTEGER = (JDATE(.#DATE))
SET VAR vThisYrDays INTEGER = (MOD(.vJDate,1000))
SET VAR vweeknum INTEGER = (INT(.vThisYrDays/7) + 1)

SHOW VAR
RETURN

--- Claudine Robbins <[EMAIL PROTECTED]> wrote:

> 
> 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 :)
> 
> 


Albert Berry 
Management Consultant
RR2 - 1252 Ponderosa Drive
Sparwood BC, V0B 2G2 
Canada
(250) 425-5806
(250) 425-7259
(708) 575-3952 (fax)
[EMAIL PROTECTED]

Reply via email to