Java tutorial
import java.io.File; import java.util.Date; public class MainClass { public static void main(String[] args) { // Create an object that is a directory File myDir = new File("C:/Java_Dev"); System.out.println(new Date(myDir.lastModified())); } }