f



java date

Hi guys,

    I have a question,
    How I can get the date from a file?

   thanks a lot
   Marco


0
10/13/2003 2:57:12 PM
comp.lang.java.programmer 52714 articles. 1 followers. Post Follow

1 Replies
369 Views

Similar Articles

[PageSpeed] 41

"Slk DSI unimi it" <no_ronchetti_spam@dico.unimi.it> wrote in message
news:bmeeiv$1ob$1@sun250.unimi.it...
> Hi guys,
>
>     I have a question,
>     How I can get the date from a file?
>

last modified date?

  File f = new File("C:/blah/blah.txt");

  System.out.println(new Date(f.lastModified()));


-- 
Mike W

Sun Certified Programmer for the Java 2 Platform 1.4  :-)
Self congratulation for a limited time only ;-)


0
spam19 (1056)
10/13/2003 3:32:07 PM
Reply: