[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



You can use an edit mask to determine the quarter.

let $quarter = edit($doc_date, 'Q')

At 03:00 PM 7/25/2002 -0400, you wrote:
>Thanks for the code sample but I am comparing four quarters.
>
>  If docdate is between date 1 and date 2 let quarter = 1
>else if
>       "                                        "
>so on
>
>I was wondering if there is a reserved word I could use or something. I
>already tried using the code below and it didn't work. Hope you can help.
>Thanks for the quick reply I appreciate it.
>
>($doc_date >= '01/01' AND
>  $doc_date <= '04/30'
>  let $quarter = 1)


--------------------------------------------------------------------------------
Daniel Vandenberg                    |  Email :  vandberg@uwosh.edu
Applications Programming
University of Wisconsin Oshkosh