[Lazarus] DateDif function needed
DrDiettrich1 at aol.com
Sun Nov 10 06:57:18 CET 2013
Jürgen Hestermann schrieb:
> Am 2013-11-09 13:43, schrieb Michael Van Canneyt:
>> So what ? Do an EncodeDate() and you're all set.
> That would be a real performance hit (i.e. when sorting by date)
> if you have stored dates in year, month, day... format.
> Each comparison then needs multiple convertions each time.
Not with ISO date format (yyyy-mm-dd), where a single string compare is
sufficient. But certainly a string compare is more expensive than a
comparison of two Real values.
More information about the Lazarus