title: How to get the last modified date and time of a directory in java
body: <p>See, the problem is that in Java, we can get <em>lastmodified</em> date by <code>filename.lastModified()</code>. But in Windows, what is happening is that whenever a file is modifed, only that file's date and time are getting modified, not the whole folder's. So I want to know when was the last time even one single file was modified in that folder, using Java?</p>