Last modified time

how to get last modified date of a file?........
[55 byte] By [RSDEEPUa] at [2007-11-26 19:09:27]
# 1
java.io.File.lastModified()
sabre150a at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 2
read the File api
suparenoa at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 3
too slow!
suparenoa at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 4
I tried it but it give time in milli second .But i want the format("yyyy-mm-dd hh:ss")
RSDEEPUa at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 5
> I tried it but it give time in milli second .But i> want the format("yyyy-mm-dd hh:ss")See the class SimpleDateFormat in that case.Kaj
kajbja at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 6
can anyone give the java code for it?............
RSDEEPUa at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 7
> can anyone give the java code for it?............Why aren't you giving it a try? You know that you need to use File.lastModified and SimpleDateFormat. Kaj
kajbja at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...
# 8
thanx alot kajbj i tried the simpleDateFormat and i got the correct answerMessage was edited by: RSDEEPU
RSDEEPUa at 2007-7-9 21:04:18 > top of Java-index,Java Essentials,Java Programming...