docparse-scraper-dates

Parse the scraper date strings formatted as "YYYY MM DD" into moment.js objects

Docparse Add Invoice

Parse the scraper date strings formatted as "YYYY MM DD" into moment.js objects

Dependency tracking by David

Usage

var eyespect = require('eyespect').inspector()
var getDates = require('docparse-scraper-dates');
var data = {
  fromDate: '2011 01 19',
  toDate: '2011 02 19',
}
getDates(data, function(errdates) {
  if (err) {
    inspect(err, 'error adding invoice ids to upload')
    return;
  }
  inspect(dates, 'parsed dates');
});

npm install docparse-scraper-dates

npm install docparse-scraper-dates eyespect