title: error in generating file with system date in java
body: <p>I am having trouble generating file with the system date as part of the filename.</p>
  
  <p>Below is a snippet of my code:</p>
  
  <pre><code> private static void writeFile(ArrayList&lt;ArrayList&lt;String&gt;&gt; myList,SourceBundle source) 
   {
      StringBuffer sbRequestControl;
      DateFormat format = new SimpleDateFormat("DD-MM-YYYY");
      Date now = new Date(0);
      File f = new File("MyFile_" + format.format(now) + ".csv");
   }
  </code></pre>
  
  <p>And below is the output I'm getting: <strong>MyFile_365-12-1970.csv</strong></p>