title: Java-Convert FileTime to Date Format
body: <p>i want to convert filetime to date in format(DD/MM/YYYY).</p>
  
  <p>here is my code.</p>
  
  <pre><code>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());
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PyMF6.png" rel="nofollow noreferrer"></a></p>
  
  <p>i tried this code month and year is working fine and it's in the format but some value is printing in the day(DD). 
  Thank you.</p>