Home Java Example Java Io Getting the modification date and time of file or folder in Java



Getting the modification date and time of file or folder in Java
Posted on: April 16, 2007 at 12:00 AM
In this section, you will learn how to get the last modification date and time of any file or a folder.
C:\nisha>java GetDirectoryAndFileModifiedTime
Enter file or directory name in proper format to get the modification date and time :
myfile.txt
File name : myfile.txt
File modification date and time : Thu Oct 04 16:31:39 GMT+05:30 2007

C:\nisha>

Download this example.

Related Tags for Getting the modification date and time of file or folder in Java:
cfiledatetimeiovireturnfolderthisidcheckifieexampleexistsprogramramexamldcieilnotpemodificationiminnomodmcaspecstsmemodiprocatxaxampsurnspfoldatoldkishaimemplandxissthstatihatexiicaicapleplprndonogrolo


More Tutorials from this section

Ask Questions?    Discuss: Getting the modification date and time of file or folder in Java   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.