score:3

Accepted answer

your code snippet takes the array from results, formats the date, and then returns an array. so deliverables is the same as results but with date formatted. if delivarables is null, then results must be empty or null. you can check this by inserting a

console.log("test"); 

into the loop

this is the unlinqd code snippet

var deliveries = [];
results.foreach(function(item)
{
  var item.transactiondate = item.transactiondate.format("yyyy-mm-dd hh:mm:ss");
  deliveries.push(item);
};

i hope this clears it up.


Related Query

More Query from same tag