dcsimg

How can I change time and date of a file?

John Zukowski

Provided you have write access to the file and are using JDK 1.2 or later, the public boolean setLastModified(long time) method of File allows you to modify the timestamp associated with a file.