[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: how to compare dates
- Subject: Re: how to compare dates
- From: Andalib Yussuf <andalib.yussuf@AMS.COM>
- Date: Thu, 25 Jul 2002 15:23:07 -0400
Hello Rick,
thanks for the quick reply. I have provided my code below and I did use the
datetostr function. This is what I have and it is not working
h.DOC_DT &doc_date
let $doc_date = datetostr(&doc_date, ('MM/DD'))
If $doc_date >= '10/01' and <= '12/31'
let $quarter = '1'
else If $doc_date >= '01/01' and <= '04/30'
let $quarter = '2'
else If $doc_date >= '05/01' and <= '06/30'
let $quarter = '3'
else If $doc_date >= '07/01' and <= '10/31'
let $quarter = '4'
End-If
The current error I get is '<=' missing arguments