hi i have been trying to get a files creation date but have not found any way.. is there a java method to do this or some sort of api i can get to find this information.
File f = new File("C:/test.txt"
System.out.println(f.lastModified());
will give you the last time the file was modified. Bear in mind though that File.lastModified() returns a long - which is the number of milliseconds from 01/01/1970 !!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.