On Mon, 2002-05-06 at 13:53, Lance Prais wrote:
> 
> 
> Hello,
>   How do you compare dates to see if dates are "between"?
> For example in SQL I would do it like this to find the values between now
> and seven days prior:.
> X is Between(sysdate-7) and sysdate
> Thank you,
> 

Use a Date:: module to make sure it's valid date and all that jazz.  I'd
use Date::Calc because it's fairly fast, as far as the Date modules go,
and has a recipe for doing exactly what you described.  Check out the
Date::Calc here:

http://search.cpan.org/doc/STBEY/Date-Calc-5.0/Calc.pod

Later,

Sean.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to