List:General Discussion« Previous MessageNext Message »
From:Nick Didkovsky Date:February 19 2001 2:52pm
Subject:Comparing dates
View as plain text  
Hello,

Is there a more general way to compare DATE values than the following.

...WHERE TO_DAYS(myDateField) > TO_DAYS('2001-02-14');


I really have to objection to converting to a common unit of days in
order to compare (as long as I don't care about comparing times within
the same day), but I imagined there would be a more general DATE type
that could be compared uniformly, and a hypothetical TO_DATE() function
that would cast appropriately.

Something that would accomodate the following:

...WHERE TO_DATE(myDateField) > TO_DATE('1997-10-04 22:23:00')

as well as:

...WHERE TO_DATE(myDateField) > TO_DATE('1997-10-04')

You get the idea... thoughts?

Best,
Nick

Thread
Comparing datesNick Didkovsky19 Feb
  • Re: Comparing datesPeter Skipworth19 Feb
    • Error 127Lauri Vain19 Feb
      • Re: Error 127Bob Hall20 Feb
  • SV: Comparing datesPal Wester19 Feb
    • Re: SV: Comparing datesNick Didkovsky19 Feb