constant dayinsecs   = 86400

function DaysDelta date1, date2
  convert date1 to seconds
  convert date2 to seconds 
  put abs(date1-date2) div dayinsecs into delta
  return delta
end DaysDelta

cheers
Xavier


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stewart Lynch
> Sent: Friday, March 11, 2005 17:24
> To: How to use Revolution
> Subject: Date Function?
> 
> Does anyone have a function that will calculate the number of 
> days between two days in different years?
> 
> *******************************************
> ........
> :  o/  : Stewart Lynch
> : <|   : Director of Instruction, Technology and Information Services
> : / >  : Richmond School District
> :......:   Richmond, BC Canada
> Internet: [EMAIL PROTECTED]
> https://public.sd38.bc.ca/~slynch
> tel. (604) 668-6128 fax: (604) 668-6006
> *******************************************
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to