On Sat, 9 Nov 2013, Jürgen Hestermann wrote:


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 if you store everything as a DateTime and use that. The format is such that 
it sorts naturally.

But hey, who am I to try and convince you ?

Michael.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to