i\'ve a google spreadsheet that is a 2 columns table that has on column A dates (i\'m sure that are dates, and all the date functions works fine on all the column) and on column
var filtered = data.filter(function (row) {
var d = new Date( row[1] ); // change text to Date object
return d.getFullYear() === 2016; // then compare
});