before posting to UDF library, just modify the header :
;Syntax:
; fnLDAPQuery(DATE1, [DATE2|INTEGER], [INTERVAL], [FIX])

this is not really fnLDAPQuery function but fnDateDiff

!!!
_________________________
Christophe