Como converter TimeStamp do Microsoft Active Directory para Java Date


Código

String timestampFromAd = "131310256180000000";
long timestampAd = Long.valueOf(timestampFromAd);
long timestampAdToDate = (long) ((timestampAd / 10000000) - 11644473600L);
Date d = new Date(timestampAdToDate * 1000);
System.out.println("Data " + d);
Saída
Data Wed Feb 08 09:06:58 BRST 2017