Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Path path = Paths.get(FilePath);
  2. BasicFileAttributes attr;
  3. attr = Files.readAttributes(path, BasicFileAttributes.class);
  4. FileTime date=attr.creationTime();
  5. DateFormat df=new SimpleDateFormat("DD/MM/YYYY");
  6. Fdate=df.format(date.toMillis());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement