improve ldapDate()