Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Comparing Dates
In article <7ij3ed$4bl$1_at_gatekeeper.ornano.kapt.com>, Fred Ruffet
<fruffet_at_kaptech.com> writes
>Justin,
>
>I know my answer seems to be strange, but it's the only one I know. I
>believe Oracle provides only one method to compare dates, which is the
>months_between function. It returns number of months between the two dates,
>and it can be floats (if difference can not be exactly expressed in months)
>
>select months_between(date1,date2) from table
Dates can be simply taken one from the other e.g. days_diff := date1 - date2;
>
>regards,
>
>Fred
>
>Tay Hwey Chen a écrit dans le message
><01bea816$052c78a0$d04a17cb_at_prabbit.labyrinth.net.au>...
>>Does anybody know how to compare dates to determind the number of days
>>between them in PL/SQL?
>>
>>
>>
>>Regards,
>>
>>
>>Justin
>
>
--
Andy Hardy. PGP key available on request
![]() |
![]() |