How to compare AD Date of 18 character(LDAP) with system date of 12 character

Hi @anubhav_varshney07,

you can convert AD format date into a Date on this way:

long longDate = (Long.parseLong(adDate) / 10000L) - + 11644473600000L;
Date finalDate = new Date(longDate);

and later you can compare with a new Date()