diffdays

Sarah sarahr at genesearch.com.au
Tue Jul 16 23:30:00 EDT 2002


If you convert both dates to seconds, and divide the difference by 86400 
(the number of seconds in a day), then you will get the number of days 
between the dates. When you convert, specify what format you are 
starting with e.g.
	convert from short system date to seconds
This will allow for localised date formats.

Cheers,
Sarah

On Wednesday, July 17, 2002, at 12:42  PM, Yves Coppé wrote:

> Hello,
>
> Can someone help me to write a function that returns the difference of 
> days between two dates ?
> Please don't forget the dateformat can be different from a system to 
> another (U.S,French,German,...)
>
> Thank you.
> --
> Salutations.
>
> Yves COPPE
>
> Email : yvescoppe at skynet.be
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the Use-livecode mailing list