Change a file timestamp

Timestamp is a utility to change or modify the time of a file. Java provides the facility for changing a file timestamp according to the user reliability.

Change a file timestamp

Timestamp is a utility to change or modify the time of a file. Java provides the facility for changing a file timestamp according to the user reliability.

Change a file timestamp

C:\vinod\Math_package>javac ChangeFileDate.java

C:\vinod\Math_package>java ChangeFileDate
Change file timestamp example!
Enter file name with extension:
StrStartWith.shtml
Enter last modified date in 'dd-mm-yyyy' format:
23-04-2007
Modification is successfully!

Download this example.