title: Node csv-stringify format timestamp column
body: <p>I'm converting a list of objects into a csv using Node csv-stringify package.</p>
  
  <p>One of the columns contains a time-stamp and the stringify method is converting this to an epoch date.</p>
  
  <pre><code>var stringify = require('csv-stringify');
  
  ...
  
  input = [
  {'field1':'val1', 'timemodified':'2016-08-16T23:00:00.000Z'},
  ...
  ]
  
  stringify(input, function(err, output){
  console.log(output);
  })
  </code></pre>
  
  <p>The timemodified in output is formatted as:</p>
  
  <pre><code>1471388400000
  </code></pre>
  
  <p>How can I maintain the original time stamp formatting in the output?</p>
  
  <p>I tried using the formatters option but it had no effect:
  <a href="http://csv.adaltas.com/stringify/examples/" rel="nofollow noreferrer">http://csv.adaltas.com/stringify/examples/</a></p>
  
  <pre><code> stringify(input, {formatters: {
        "timemodified": function(value){
          return value.format("YYYY/MM/DD hh:mm:ss");
        }
      }},function(err, output) {
        fs.writeFile('userUpload.csv', output, 'utf8', function(err) {
          if (err) {
            console.log('Error - file either not saved or corrupted file saved.');
          } else {
            console.log('userUpload.csv file saved!');
          }
        });
      });
  </code></pre>