Re: sysdate in 2000. Irritating problem..

From: dave mausner <dmausner_at_ameritech.x.net>
Date: Fri, 04 Feb 2000 02:30:10 GMT
Message-ID: <8ECFD3D2Adlm_at_206.141.192.241>


mwvonk_at_wxs.nl (Martin Vonk) wrote in <87d2li$2lip2$1_at_reader3.wxs.nl>:

>In the old days (<=1999) a simple query like:
>select sysdate-entrydate from members; wen't OK.
>It displayed the number of days between to date and the entrydate of a
>member.
>
>Now in 2000 it is giving idiot results. To be more specific:

i will bet that "entrydate" is not a date datatype. if it were, then you could subtract it from "sysdate" forever. if it isn't, then you must cast one or the other to the Y2K compliant date format. lesson: store dates in date datatype.

-- 
dave mausner
Received on Fri Feb 04 2000 - 03:30:10 CET

Original text of this message