[Lazarus] DateDif function needed

Michael Van Canneyt michael at freepascal.org
Tue Nov 12 22:00:39 CET 2013



On Tue, 12 Nov 2013, John Landmesser wrote:

>
> Date1 := 29.2.2000
> Date2 := 28.02.2001
>
> Your function:
> 0 Y, 11 M, 27 D
>
> Rxlib ( Jedi ) DateDiff:
> 0 Y, 11 M, 28 D
>
> Libre Office Calc:
> 0 Y, 11 M, 30 D
>
> The table - function of Libre Office Calc is called in german DATUMDIF()
>
> Get a calendar and count??

Seeing this, I can't help but think that the approximation approach
may not be such a bad idea after all :D

Michael.




More information about the Lazarus mailing list