Domino Code Fragment

Code Name*
day difference
Date*
02/04/2001
Source (or email address if you prefer)*
Rajiv Menon
IP address:.64.232.132.27
Description*
to find difference between two dates and find the day difference
Type*
LotusScript
Categories*
Date/Time Handling
Implementation:
Modify code
Required Client:
5.0
Server:
5.0
Limitations:
Comments:
Files/Graphics attachments (if applicable): 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