title: Name a file in Java to include date and time stamp
body: <p>I am exporting data into a file in a Java application using NetBeans. The file will have a hard coded name given by me in the code. Please find below the code.</p>
  
  <pre><code>private static String FILE = "D:\\Report.pdf";
  </code></pre>
  
  <p>I want to append date and time stamp to the file name generated so that each file created is a unique file. How to achieve this?</p>