I am trying to minus one hour from now and try to convert it to IsoString.
let date = new Date().getTime() - 1000 * 60 * 60
// Here I am trying to get past hour time by minus 1 hour.
console.log(date.toISOString())
// Here I am getting one error like
// date.toISOString is not a function
Why I am getting this error - date.toISOString is not a function
. Please help me.