Martin Scott Consulting | WirelessMail Overview
 

day difference
Source: Rajiv Menon, 02/04/2001
Implementation: Modify codeServer: 5.0
Code Type: LotusScriptRequired Client: 5.0
Description
to find difference between two dates and find the day difference
Code
'doc is a notesdocument to find difference in days between say today
'and another date say doc.created i.e the date of creation of the
'document
daydiff=abs(int(Cbdl(Today)-Cbdl(doc.created)))
'would do "Cbdl" is used to get the double numeric format of the dates
'the decimal part which is time is removed by using "Int" and "Abs"
'returns absolute value