in reply to Re: Re: Is this logic valid?
in thread Is this logic valid?

Mind your parentheses. Make sure your date format compares properly with a string compare ("2001-05-15" will, but "15 May 2001" and "2001-5-15" won't). What exactly is the problem you're having with this code?