This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes How to get the timestamp from the File  IO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

How to get the timestamp from the File IO

mahesh lala
Greenhorn

Joined: Jul 08, 2005
Posts: 16
Hello Friends ,

Using java.io.File class with the method lastModified () retrieves the last modified file in long ie milliseconds since the epoch (00:00:00 GMT, January 1, 1970) I want the time to be like the listing files of a directory in windows environment like 7/21/2005 12:17 PM . I mean to say I want to retrieve the date and time with the lastModified method of a java.io.File class..

your early response is highly appreciated and i shall be very thankful to you .

bye
Mahesh .
==============
Ryan McGuire
Ranch Hand

Joined: Feb 18, 2005
Posts: 1007
    
    3
This is a duplicate topic. Direct all replies to the I/O and Stream topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get the timestamp from the File IO