[Lazarus] DateDif function needed

Bart bartjunk64 at gmail.com
Wed Nov 13 00:01:09 CET 2013


On 11/12/13, John Landmesser <JohnML at online.de> wrote:

> On 12.11.2013 21:40, John Landmesser wrote:
>>
>> Which is correct?
>>
>> Date1 := 29.2.2000
>> Date2 := 28.02.2001
>>

I would actually say that in this particular case the diff is 1 Year...
(11 M + (28 days in feb in a non-leapyear = 1M) = 12M = 1 Y.

Bart




More information about the Lazarus mailing list