Subject Re: [ib-support] Re: [IBO] Date Question
Author Nando Dessena
Jason,

> No, is all he needs to do is catch the exception on the case where he is on
> a leap year day and the next year doesn't have an equivalent month/day
> combination. In which case he should just subtract one from the day and then
> it will be fine.

that's an approach.
Another is calculate if the year is a leap year in advance and correct
the day before encoding the date.

I am used to avoid using exceptions to cater for foreseeable cases,
because of both style and performance (in Delphi).
Don't know if the performance hit of WHEN in InterBase SP code is
significant, perhaps not much.
Ciao
--
____
_/\/ando