Stitch webhook ISODate

A silly question: ISODate shouldn’t work within a webhook stitch?

I get: ISODate is not defined

Thanks

ImageISODate

Hi @Federico_Ettlin,

ISODate() is only a mongo shell wrapper/helper for the Date object.

In Stitch, you could just use the built-in javascript Date. i.e.

exports = function(payload, response) { 
  return {"foo": new Date()};
};

You may also find the following useful:

Regards,
Wan.

1 Like

Thank you very much, Wan.