Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Path path = Paths.get(FilePath);
- BasicFileAttributes attr;
- attr = Files.readAttributes(path, BasicFileAttributes.class);
- FileTime date=attr.creationTime();
- DateFormat df=new SimpleDateFormat("DD/MM/YYYY");
- Fdate=df.format(date.toMillis());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement