IYR has always been a kind of stupid function. That is why I asked for (and
got almost immediately) the IYR4 function. No matter what your date
settings you will get the correct year.
Use that year in the RDATE function and you will not get any surprises.
-- Dennis McGrath
mailto:[EMAIL PROTECTED]
-- Tools for R:BASE programmers
http://www.enteract.com/~mcgrath/dennis
-- Full time consultant with SQL Resources
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ben Petersen
Sent: Monday, July 09, 2001 3:48 AM
To: [EMAIL PROTECTED]
Subject: iyr comparisons
Hi all,
It seems a comparison like
If (iyr(.date_1)) > (iyr(.date_2)) then ...
uses the number of digits set in the date format.
So with a two digit year format (20)01 < (19)99
if date_1 > .date_2 then ..
compares accurately regardless.
Is this a bug, or is there a reason for it?
Thanks,
Ben Petersen